Class ObjectSet<O extends ObjectType>

java.lang.Object
com.evolveum.midpoint.schema.util.ObjectSet<O>
All Implemented Interfaces:
Iterable<O>, Collection<O>

@Experimental public class ObjectSet<O extends ObjectType> extends Object implements Collection<O>
This is a set of objects that considers objects being equal by simply comparing their OIDs. It should be more efficient and robust than e.g. HashSet that uses AbstractMutableObjectable.hashCode() and ObjectType.equals(Object) methods. We intentionally do not implement Set interface, because we do not fulfill its contract. Requirement: only objects with OID can be stored here. TODO better name