|
||||||||
| 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
The author or the commiter field of a commit object. Consists of the combination of the name + e-mail + time + time zone.
| 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()
Returns the string representation of the timezone associated with this identification. |
String |
getName()
Returns the name associated with this identification. |
long |
getSeconds()
Returns 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)
Deprecated. this class will be immutable in a future release. Please use withIdentity(String, String). |
void |
setName(String newName)
Deprecated. this class will be immutable in a future release. Please use withIdentity(String, String). |
String |
toString()
Returns the string representation of this identification as defined by the ToStringObject.formatToString(StringBuilder, int) method. |
Identification |
withIdentity(String newName,
String newEmail)
Returns a copy of this identification with both the name and the e-mail altered. |
| 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.
@Deprecated public final void setEmail(String newEmail)
withIdentity(String, String).
newEmail - the new e-mail address value@Deprecated public final void setName(String newName)
withIdentity(String, String).
newName - the new name valuepublic final String toString()
ToStringObject.formatToString(StringBuilder, int) method.
toString in class Object
public final Identification withIdentity(String newName,
String newEmail)
newName - the name of the returned copynewEmail - the e-mail address of the returned copy
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||