|
|||||||||
| Home >> All >> com >> virtuosotechnologies >> lib >> [ base overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.virtuosotechnologies.lib.base
Interface HierarchicalType

- All Known Implementing Classes:
- UniqueHierarchicalType
- public interface HierarchicalType
An interface for objects that implement a hierarchical type system.
A hierarchical type system is a class of objects with the following properties:
- The object may have zero or more parents, which must be within the same class. An object is said to "extend" all of its ancestors.
- The object is not a descendant of itself. That is, the parent relationships form an acyclic graph.
- The object can quickly determine, given another object, whether it extends that object.
- The object is immutable.
- The equals() method is suitably defined to preserve the above semantics. Normally, objects should be uniques whose equals() method uses reference equality.
| Method Summary | |
boolean |
equalsOrExtends(HierarchicalType type)
Returns true if and only if this HierarchicalType the same as or an extension of the given parameter. |
java.util.Iterator |
getParents()
Get an interator over the immediate parents |
| Method Detail |
equalsOrExtends
public boolean equalsOrExtends(HierarchicalType type)
- Returns true if and only if this HierarchicalType the same as or
an extension of the given parameter.
getParents
public java.util.Iterator getParents()
- Get an interator over the immediate parents
|
|||||||||
| Home >> All >> com >> virtuosotechnologies >> lib >> [ base overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC