Package com.anylogic.engine.markup
- java.lang.Object
- java.lang.Record
- com.anylogic.engine.markup.DensityMap.NetworkBasedDensityMapPreparationSettings
- All Implemented Interfaces:
DensityMap.DensityMapPreparationSettings
- Enclosing class:
- DensityMap
@AnyLogicInternalLibraryAPI public static record DensityMap.NetworkBasedDensityMapPreparationSettings(Level level, Set<DensityMapCompatibleNetwork> networks) extends Record implements DensityMap.DensityMapPreparationSettings
| Constructor | Description |
|---|---|
NetworkBasedDensityMapPreparationSettings |
Creates an instance of a
NetworkBasedDensityMapPreparationSettings record class. |
| Modifier and Type | Method | Description |
|---|---|---|
final boolean | equals |
Indicates whether some other object is "equal to" this one.
|
DensityMapBasisType | getBasisType() | |
final int | hashCode() |
Returns a hash code value for this object.
|
Level | level() |
Returns the value of the
level record component. |
Set<DensityMapCompatibleNetwork> | networks() |
Returns the value of the
networks record component. |
final String | toString() |
Returns a string representation of this record class.
|
public NetworkBasedDensityMapPreparationSettings(Level level, Set<DensityMapCompatibleNetwork> networks)
Creates an instance of a
NetworkBasedDensityMapPreparationSettings record class.- Parameters:
level- the value for thelevelrecord componentnetworks- the value for thenetworksrecord component
public DensityMapBasisType getBasisType()
- Specified by:
getBasisTypein interfaceDensityMap.DensityMapPreparationSettings
public final String toString()
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
public final int hashCode()
Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
public final boolean equals(Object o)
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with
Objects::equals(Object,Object).public Level level()
Returns the value of the
level record component.- Specified by:
levelin interfaceDensityMap.DensityMapPreparationSettings- Returns:
- the value of the
levelrecord component
public Set<DensityMapCompatibleNetwork> networks()
Returns the value of the
networks record component.- Returns:
- the value of the
networksrecord component