|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectbr.com.objectos.git.Identification
public final class Identification
Represents the author or the commiter of a commit object.
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compares the specified object with this identification for equality. |
void |
formatToString(StringBuilder toString,
int level)
Formats and appends to the toString builder at the specified
indentation level a string representation of this id. |
String |
getEmail()
Returns the e-mail addresss associated with this identification. |
String |
getGitTimeZone()
Return the timezone associated with this identification. |
String |
getName()
Return the name associated with this identification. |
long |
getSeconds()
Return the date, as seconds since UNIX epoch, associated with this identification. |
int |
hashCode()
Returns the hash code value of this identification. |
String |
print()
Returns a string representation of the form name <email> seconds timezone. |
void |
setEmail(String newEmail)
Sets the e-mail address value. |
void |
setName(String newName)
Sets the name value. |
String |
toString()
Returns the string representation of this identification as defined by the ToStringObject.formatToString(StringBuilder, int) method. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public final boolean equals(Object obj)
Returns true if and only if the specified object is also a
Identification instance and if both instances have the same email,
time zone, name and timestamp.
equals in class Objectobj - the object to be compared for equality with this identification
true if the specified object is equal to this
identification
public final void formatToString(StringBuilder toString,
int level)
toString builder at the specified
indentation level a string representation of this id.
The string representation may contain:
formatToString in interface br.com.objectos.core.object.ToStringObjecttoString - the builder of a toString methodlevel - the indentation level.public final String getEmail()
public final String getGitTimeZone()
public final String getName()
public final long getSeconds()
public final int hashCode()
hashCode in class Objectpublic final String print()
name <email> seconds timezone.
public final void setEmail(String newEmail)
newEmail - the new e-mail address valuepublic final void setName(String newName)
newName - the new name valuepublic 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 | |||||||