se.jbee.inject
Class Instances
Object
se.jbee.inject.Instances
- All Implemented Interfaces:
- PreciserThan<Instances>
public final class Instances
- extends Object
- implements PreciserThan<Instances>
A hierarchy of Instances.
- Author:
- Jan Bernitt (jan@jbee.se)
| Methods inherited from class Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ANY
public static final Instances ANY
isAny
public boolean isAny()
depth
public int depth()
at
public Instance<?> at(int depth)
push
public Instances push(Instance<?> top)
equalTo
public boolean equalTo(Instances other)
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
morePreciseThan
public boolean morePreciseThan(Instances other)
- Specified by:
morePreciseThan in interface PreciserThan<Instances>
- Returns:
- true when this has higher depth or equal depth and the first more precise hierarchy
element.