|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Type
Type
interface for all type-objects that are used within CIlib.
The types are built on an extend the Java Collections Framework.
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare the specified object with this type for equality. |
Type |
getClone()
Create a cloned copy of the current object and return it. |
int |
hashCode()
Returns the hash code value for this list. |
Method Detail |
---|
Type getClone()
getClone
in interface Cloneable
Object.clone()
boolean equals(Object o)
true
if and only if the specified object is also an instance
of the same type.
equals
in class Object
o
- The object to compare.
true
if equality exists, false
otherwise.Object.equals(Object)
int hashCode()
int hashCode = 7; Iterator<E> i = list.iterator(); while (i.hasNext()) { E obj = i.next(); hashCode = 31*hashCode + (obj==null ? 0 : obj.hashCode()); }This ensures that type1.equals(type2) implies that type1.hashCode()==type2.hashCode() for any two types, type1 and type2, as required by the general contract of
Object.hashCode()
.
hashCode
in class Object
Object.equals(Object)
,
equals(Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |