|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectbr.com.objectos.git.MaybeObjectId
public abstract class MaybeObjectId
Represents an ObjectId or its absence.
| Method Summary | |
|---|---|
static MaybeObjectId |
empty()
Returns the instance representing the absence of a hash value. |
abstract ObjectId |
getObjectId()
Returns this reference if it is an instance of ObjectId or throws
an exception otherwise. |
abstract boolean |
isObjectId()
Returns true if this object is an instance of ObjectId. |
String |
toString()
Returns the string representation of this id as defined by the ToStringObject.formatToString(StringBuilder, int) method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface br.com.objectos.core.object.ToStringObject |
|---|
formatToString |
| Method Detail |
|---|
public static MaybeObjectId empty()
public abstract ObjectId getObjectId()
ObjectId or throws
an exception otherwise.
ObjectId
NoSuchElementException - if this object is not an ObjectIdpublic abstract boolean isObjectId()
true if this object is an instance of ObjectId.
true if this object is an instance of ObjectIdpublic final String toString()
ToStringObject.formatToString(StringBuilder, int) method.
toString in class Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||