br.com.objectos.git
public final class Identification extends Object implements br.com.objectos.core.object.ToStringObject
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
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()
public 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.public final Identification withIdentity(String newName, String newEmail)
newName - the name of the returned copynewEmail - the e-mail address of the returned copyCopyright © 2020–2022 Objectos Software LTDA. All rights reserved.