|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fu_berlin.ties.combi.CombinationState
Immutable class contains state information used by combination strategies.
Field Summary | |
static CombinationState |
OUTSIDE
Combination state to be used for outside/other (type is set to null ). |
Constructor Summary | |
CombinationState(String myType,
boolean myBegin,
boolean myEnd)
Creates a new instance. |
Method Summary | |
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one, fulfulling the Object.equals(java.lang.Object) contract. |
String |
getType()
Returns the type (class) of the current instance; or null
if we're outside of any instance. |
int |
hashCode()
Returns a hash code value for this object, fulfulling the Object.hashCode() contract. |
boolean |
isBegin()
Returns whether this is the begin of an instance. |
boolean |
isEnd()
Returns whether this is the end of an instance. |
String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final CombinationState OUTSIDE
null
). (Begin and end are set to false
, but
for "other" they are generally ignored anyway).
Constructor Detail |
public CombinationState(String myType, boolean myBegin, boolean myEnd)
myType
- the type (class) of this instance; or null
if
we're outside of any instancemyBegin
- whether this is the begin of an instancemyEnd
- whether this is the end of an instanceMethod Detail |
public boolean equals(Object obj)
Object.equals(java.lang.Object)
contract.
obj
- the reference object with which to compare
true
iff the specified object is a
CombinationState
equal to this instancepublic String getType()
null
if we're outside of any instance.
public int hashCode()
Object.hashCode()
contract.
public boolean isBegin()
public boolean isEnd()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |