br.com.objectos.git
Interface MaybeObjectId

All Superinterfaces:
br.com.objectos.core.object.ToStringObject
All Known Implementing Classes:
ObjectId

public interface MaybeObjectId
extends br.com.objectos.core.object.ToStringObject

The result of a repository query.

Since:
1

Method Summary
 ObjectId getObjectId()
          Returns this reference if it is an instance of ObjectId or throws an exception otherwise.
 boolean isObjectId()
          Returns true if this object is an instance of ObjectId.
 
Methods inherited from interface br.com.objectos.core.object.ToStringObject
formatToString
 

Method Detail

getObjectId

ObjectId getObjectId()
Returns this reference if it is an instance of ObjectId or throws an exception otherwise.

Returns:
this reference if it is an instance of ObjectId
Throws:
NoSuchElementException - if this object is not an ObjectId

isObjectId

boolean isObjectId()
Returns true if this object is an instance of ObjectId.

Returns:
true if this object is an instance of ObjectId


Copyright © 2020–2021 Objectos Software LTDA. All rights reserved.