Class AttributesUtils
- java.lang.Object
-
- org.matsim.utils.objectattributes.attributable.AttributesUtils
-
public class AttributesUtils extends Object
- Author:
- thibautd
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTRIBUTE
static String
ATTRIBUTES
-
Constructor Summary
Constructors Constructor Description AttributesUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T extends Attributable>
voidcopyAttributesFromTo(T from, T to)
Adds the mappings from "from" to "to".static void
copyTo(Attributes from, Attributes to)
Adds the mappings from "from" to "to".static boolean
isEmpty(Attributes attributes)
Deprecated.useAttributes.isEmpty()
instead
-
-
-
Field Detail
-
ATTRIBUTES
public static final String ATTRIBUTES
- See Also:
- Constant Field Values
-
ATTRIBUTE
public static final String ATTRIBUTE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AttributesUtils
public AttributesUtils()
-
-
Method Detail
-
copyTo
public static void copyTo(Attributes from, Attributes to)
Adds the mappings from "from" to "to". Nothing is done to copy the Object themselves, which should be fine for 99.9% of the usecases of Attributes (value objects)
-
copyAttributesFromTo
public static <T extends Attributable> void copyAttributesFromTo(T from, T to)
Adds the mappings from "from" to "to". Nothing is done to copy the Object themselves, which should be fine for 99.9% of the usecases of Attributes (value objects)
-
isEmpty
@Deprecated public static boolean isEmpty(Attributes attributes)
Deprecated.useAttributes.isEmpty()
instead- Parameters:
attributes
- collection of attributes- Returns:
true
if the attributes collection does not contain any attribute
-
-