Package org.opentcs.access.to
Klasse CreationTO
java.lang.Object
org.opentcs.access.to.CreationTO
- Alle implementierten Schnittstellen:
Serializable
- Bekannte direkte Unterklassen:
BlockCreationTO
,DestinationCreationTO
,LocationCreationTO
,LocationTypeCreationTO
,OrderSequenceCreationTO
,PathCreationTO
,PeripheralJobCreationTO
,PeripheralOperationCreationTO
,PlantModelCreationTO
,PointCreationTO
,TransportOrderCreationTO
,VehicleCreationTO
,VisualLayoutCreationTO
The base class for all creation transfer objects.
- Siehe auch:
-
Konstruktorübersicht
ModifiziererKonstruktorBeschreibungCreationTO
(String name) Creates a new instance.protected
CreationTO
(String name, Map<String, String> properties) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the properties of this transfer object.getName()
Returns the name of this transfer object.Returns the properties of this transfer object in an unmodifiable map.protected static final <T> List
<T> listWithAppendix
(List<T> list, T newElement) Returns a new list, with the elements of the given list and the given element added to it.protected static final <K,
V> Map <K, V> mapWithMapping
(Map<K, V> map, K key, V value) Returns a new map, with the mappings of the given map and the given mapping added to it.propertiesWith
(String key, String value) Creates a copy of this object with the given name.withProperties
(Map<String, String> properties) Creates a copy of this object with the given properties.withProperty
(String key, String value) Creates a copy of this object with the given property.
-
Konstruktordetails
-
CreationTO
Creates a new instance.- Parameter:
name
- The name of this transfer object.
-
CreationTO
-
-
Methodendetails
-
getName
Returns the name of this transfer object.- Gibt zurück:
- The name of this transfer object.
-
withName
Creates a copy of this object with the given name.- Parameter:
name
- the new name- Gibt zurück:
- A copy of this object, differing in the given value.
-
getProperties
Returns the properties of this transfer object in an unmodifiable map.- Gibt zurück:
- The properties of this transfer object in an unmodifiable map.
-
getModifiableProperties
Returns the properties of this transfer object.- Gibt zurück:
- The properties of this transfer object.
-
withProperties
Creates a copy of this object with the given properties.- Parameter:
properties
- The properties.- Gibt zurück:
- A copy of this object with the given properties.
-
withProperty
Creates a copy of this object with the given property. If value == null is true then the key-value pair is removed from the properties.- Parameter:
key
- the key.value
- the value- Gibt zurück:
- A copy of this object that includes the given property or removes the entry, if value == null.
-
propertiesWith
-
mapWithMapping
Returns a new map, with the mappings of the given map and the given mapping added to it.- Typparameter:
K
- The type of the map's keys.V
- The type of the map's values.- Parameter:
map
- The map to be extended.key
- The key.value
- The value. May benull
to remove the mapping from the given map.- Gibt zurück:
- a new map, with the mappings of the given map and the given mapping added to it.
-
listWithAppendix
Returns a new list, with the elements of the given list and the given element added to it.- Typparameter:
T
- The element type of the list.- Parameter:
list
- The list to be extended.newElement
- The element to be added to the list.- Gibt zurück:
- A new list, consisting of the given list and the given element added to it.
-