org.eclipse.ocl.examples.domain.ids.impl
Class BindingsIdImpl
java.lang.Object
org.eclipse.ocl.examples.domain.ids.impl.BindingsIdImpl
- All Implemented Interfaces:
- java.lang.Iterable<ElementId>, BindingsId, WeakHashMapOfListOfWeakReference2.MatchableId<ElementId[]>, IndexableIterable<ElementId>
public class BindingsIdImpl
- extends java.lang.Object
- implements BindingsId, WeakHashMapOfListOfWeakReference2.MatchableId<ElementId[]>
BindingsIdImpl provides a hashable list of elementIds suitable for use when indexing specializations.
Constructor Summary |
BindingsIdImpl(IdManager idManager,
java.lang.Integer hashCode,
ElementId[] elementIds)
Construct a BindingsId for an idManager that has computed the hashCode for the typeIds. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
BindingsIdImpl
public BindingsIdImpl(@NonNull
IdManager idManager,
@NonNull
java.lang.Integer hashCode,
@NonNull
ElementId[] elementIds)
- Construct a BindingsId for an idManager that has computed the hashCode for the typeIds.
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
get
@NonNull
public ElementId get(int i)
- Specified by:
get
in interface IndexableIterable<ElementId>
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
iterator
public java.util.Iterator<ElementId> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<ElementId>
matches
public boolean matches(@NonNull
ElementId[] thoseElementIds)
- Specified by:
matches
in interface WeakHashMapOfListOfWeakReference2.MatchableId<ElementId[]>
size
public int size()
- Specified by:
size
in interface IndexableIterable<ElementId>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object