Package edu.byu.hbll.box
Class DocumentId
- java.lang.Object
-
- edu.byu.hbll.box.DocumentId
-
- All Implemented Interfaces:
Serializable
public final class DocumentId extends Object implements Serializable
An immutable representation of a box document id which includes the source name of the document and its id.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DocumentId(String sourceName, String id)
Creates a newDocumentId
with the given source name and id.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Checks equality of the source name and ID.String
getId()
Returns the id.String
getSourceName()
Returns the source name.int
hashCode()
String
toString()
Returns a string representation of this.
-
-
-
Constructor Detail
-
DocumentId
public DocumentId(String sourceName, String id)
Creates a newDocumentId
with the given source name and id.- Parameters:
sourceName
- the source name of the document.id
- the id of the document.- Throws:
NullPointerException
- if either sourceName or id is null
-
-