org.eclipse.ocl.examples.domain.ids.impl
Class ParametersIdImpl

java.lang.Object
  extended by 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.


Nested Class Summary
protected  class ParametersIdImpl.Iterator
           
 
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.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 TypeId[] get()
           
 TypeId get(int index)
           
 int hashCode()
           
 java.util.Iterator<TypeId> iterator()
           
 boolean matches(TypeId[] thoseTypeIds)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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