public final class InstanceUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Collection<Instance> |
getInstanceOutOfFamily(FamilyInstance fi)
Creates a list of instances out of a FamilyInstance
|
static boolean |
groupEqual(Group a,
Group b,
boolean propertyOrderRelevant)
Checks whether the two given groups equal each other.
|
static String |
groupToString(Group group)
Returns a string representation of the given group.
|
static boolean |
instanceEqual(Instance a,
Instance b,
boolean propertyOrderRelevant)
Checks whether the two given instances equal each other disregarding
their data set.
|
static String |
instanceToString(Instance instance)
Returns a string representation of the given instance.
|
public static boolean instanceEqual(Instance a, Instance b, boolean propertyOrderRelevant)
a
- the first instanceb
- the second instancepropertyOrderRelevant
- whether the order of properties of the same
name is relevant or notpublic static boolean groupEqual(Group a, Group b, boolean propertyOrderRelevant)
a
- the first groupb
- the second grouppropertyOrderRelevant
- whether the order of properties of the same
name is relevant or notpublic static String instanceToString(Instance instance)
instance
- the instancepublic static String groupToString(Group group)
group
- the grouppublic static Collection<Instance> getInstanceOutOfFamily(FamilyInstance fi)
fi
- the FamilyInstance, may be null
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a