22 package org.matsim.utils.objectattributes.attributable;
36 for (var entry : from.
getAsMap().entrySet()) {
51 for (var entry : from.
getAsMap().entrySet()) {
52 String key = entry.getKey();
53 if (!key.equals(exceptAttribute)) {
64 copyTo( from.getAttributes() , to.getAttributes() );
77 copyToExcept(from.getAttributes(), to.getAttributes(), exceptAttribute);
87 return attributes.
size() == 0;
static< T extends Attributable > void copyAttributesFromTo(T from, T to)
static void copyTo(Attributes from, Attributes to)
static void copyToExcept(Attributes from, Attributes to, String exceptAttribute)
static boolean isEmpty(Attributes attributes)
static< T extends Attributable > void copyAttributesFromToExcept(T from, T to, String exceptAttribute)
Object putAttribute(final String attribute, final Object value)
static final String ATTRIBUTES
static final String ATTRIBUTE
Map< String, Object > getAsMap()