org.eclipse.ocl.examples.domain.ids.impl
Class TuplePartIdImpl
java.lang.Object
org.eclipse.ocl.examples.domain.ids.impl.TuplePartIdImpl
- All Implemented Interfaces:
- java.lang.Comparable<TuplePartId>, Nameable, ElementId, WeakHashMapOfListOfWeakReference4.MatchableId<java.lang.Integer,java.lang.String,TypeId>, TuplePartId
public class TuplePartIdImpl
- extends java.lang.Object
- implements TuplePartId, WeakHashMapOfListOfWeakReference4.MatchableId<java.lang.Integer,java.lang.String,TypeId>
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
hashCode
@NonNull
protected final java.lang.Integer hashCode
index
protected final int index
name
@NonNull
protected final java.lang.String name
typeId
@NonNull
protected final TypeId typeId
TuplePartIdImpl
public TuplePartIdImpl(@NonNull
IdManager idManager,
@NonNull
java.lang.Integer hashCode,
int index,
@NonNull
java.lang.String name,
@NonNull
TypeId typeId)
accept
@Nullable
public <R> R accept(@NonNull
IdVisitor<R> visitor)
- Specified by:
accept
in interface ElementId
compareTo
public int compareTo(TuplePartId o)
- Specified by:
compareTo
in interface java.lang.Comparable<TuplePartId>
equals
public final boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
getDisplayName
@NonNull
public java.lang.String getDisplayName()
- Description copied from interface:
ElementId
- Return a simple name for diagnostics.
- Specified by:
getDisplayName
in interface ElementId
getIndex
public int getIndex()
- Specified by:
getIndex
in interface TuplePartId
getName
@NonNull
public java.lang.String getName()
- Specified by:
getName
in interface Nameable
- Specified by:
getName
in interface TuplePartId
getTypeId
@NonNull
public TypeId getTypeId()
- Specified by:
getTypeId
in interface TuplePartId
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
matches
public boolean matches(@NonNull
java.lang.Integer thatIndex,
@NonNull
java.lang.String thatName,
@NonNull
TypeId thatTypeid)
- Specified by:
matches
in interface WeakHashMapOfListOfWeakReference4.MatchableId<java.lang.Integer,java.lang.String,TypeId>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object