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

public class CreationTO extends Object implements Serializable
The base class for all creation transfer objects.
Siehe auch:
  • Konstruktordetails

    • CreationTO

      public CreationTO(@Nonnull String name)
      Creates a new instance.
      Parameter:
      name - The name of this transfer object.
    • CreationTO

      protected CreationTO(@Nonnull String name, @Nonnull Map<String,String> properties)
  • Methodendetails

    • getName

      @Nonnull public String getName()
      Returns the name of this transfer object.
      Gibt zurück:
      The name of this transfer object.
    • withName

      public CreationTO withName(@Nonnull String name)
      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

      @Nonnull public Map<String,String> 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

      protected Map<String,String> getModifiableProperties()
      Returns the properties of this transfer object.
      Gibt zurück:
      The properties of this transfer object.
    • withProperties

      public CreationTO withProperties(@Nonnull Map<String,String> properties)
      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

      public CreationTO withProperty(@Nonnull String key, @Nonnull String value)
      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

      protected final Map<String,String> propertiesWith(String key, String value)
    • mapWithMapping

      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.
      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 be null 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

      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.
      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.