Silk DI 0.6


se.jbee.inject
Class Instances

Object
  extended by 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)

Field Summary
static Instances ANY
           
 
Method Summary
 Instance<?> at(int depth)
           
 int depth()
           
 boolean equals(Object obj)
           
 boolean equalTo(Instances other)
           
 int hashCode()
           
 boolean isAny()
           
 boolean morePreciseThan(Instances other)
           
 Instances push(Instance<?> top)
           
 String toString()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ANY

public static final Instances ANY
Method Detail

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.

Silk DI 0.6