org.eclipse.ocl.examples.domain.ids.impl
Class ParametersIdImpl
java.lang.Object
org.eclipse.ocl.examples.domain.ids.impl.ParametersIdImpl
- All Implemented Interfaces:
- java.lang.Iterable<TypeId>, WeakHashMapOfListOfWeakReference2.MatchableId<TypeId[]>, ParametersId, IndexableIterable<TypeId>
public class ParametersIdImpl
- extends java.lang.Object
- implements ParametersId, WeakHashMapOfListOfWeakReference2.MatchableId<TypeId[]>
ParametersId provides a hashed list of typeIds suitable for characterizing an operation signature.
parameter ids suitable for use when indexing operation overloads.
Constructor Summary |
ParametersIdImpl(IdManager idManager,
java.lang.Integer hashCode,
TypeId[] typeIds)
Construct a ParametersId 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 |
ParametersIdImpl
public ParametersIdImpl(@NonNull
IdManager idManager,
@NonNull
java.lang.Integer hashCode,
@NonNull
TypeId[] typeIds)
- Construct a ParametersId for an idManager that has computed the hashCode for the typeIds.
equals
public final boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
get
@NonNull
public TypeId get(int index)
- Specified by:
get
in interface IndexableIterable<TypeId>
get
@NonNull
public TypeId[] get()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
iterator
public java.util.Iterator<TypeId> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<TypeId>
matches
public boolean matches(@NonNull
TypeId[] thoseTypeIds)
- Specified by:
matches
in interface WeakHashMapOfListOfWeakReference2.MatchableId<TypeId[]>
size
public int size()
- Specified by:
size
in interface IndexableIterable<TypeId>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object