T
- The format (class) of object that the BasicIndirect containspublic class BasicIndirect<T> extends java.lang.Object implements Indirect<T>
Constructor and Description |
---|
BasicIndirect(FormatManager<T> fmtManager,
T obj)
Constructs a new BasicIndirect containing the single object provided.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getUnconverted()
Returns a String representation of the object contained or referred to by
this Indirect.
|
int |
hashCode() |
T |
resolvesTo()
Returns the object contained or referred to by this Indirect.
|
java.lang.String |
toString() |
public BasicIndirect(FormatManager<T> fmtManager, T obj)
fmtManager
- The FormatManager usable to manage the given objectobj
- The single object that this BasicIndirect will containjava.lang.IllegalArgumentException
- if either argument is null or if the given object is not
compatible with the given FormatManagerpublic T resolvesTo()
resolvesTo
in interface Indirect<T>
public java.lang.String getUnconverted()
getUnconverted
in interface Indirect<T>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object