|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.api.core.domain.DocumentName
public final class DocumentName
The name of a document is unique within a documentation in the context of a given project. The project name together with the document name makes the document uniquely identifiable.
Constructor Summary | |
---|---|
DocumentName(String name) Default constructor. |
Method Summary | |
---|---|
int |
compareTo(DocumentName o) Compares the names of the instances. |
boolean |
equals(Object object) Returns true if the given object is semantically equal to the given object, false otherwise. |
String |
getName() Returns the name identifier of the document. |
int |
hashCode() Returns the hash code of the object. |
String |
toString() Returns the string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DocumentName(String name) throws NullPointerException, IllegalArgumentException
name
- the name identifier of the document.
NullPointerException
- if
name
is
null
.
IllegalArgumentException
- if
name
is blank.
Method Detail |
---|
public String getName()
public int compareTo(DocumentName o)
Compares the names of the instances.
compareTo
in interface
Comparable<DocumentName>
public int hashCode()
hashCode
in class
Object
public boolean equals(Object object)
true
if the given object is semantically equal to the given object,
false
otherwise.
Two instances are considered equal, if their name
is equal.
equals
in class
Object
object
- the instance to compare to.
true
if the given object is semantically equal to the given object,
false
otherwise.
public String toString()
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |