| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private static final DateTimeFormatter | |
| private static final long | |
| private final ZoneId | |
| private final Instant |
| Access | Constructor and Description |
|---|---|
| public | PersonIdent(Repository
a repo)org. object.Creates new PersonIdent from config info in repository, with current time. |
| public | PersonIdent(PersonIdent
Original pi)org.Copy a |
| public | PersonIdent(String
a aName, String java. object.a aEmailAddress)java. object.Construct a new |
| public | PersonIdent(String
a aName, String java. object.a aEmailAddress, ProposedTimestamp when)java. object.Construct a new |
| public | PersonIdent(PersonIdent
original pi, Date org.local time when, TimeZone time zone tz)
Deprecated
since 7.1. Use
PersonIdent(PersonIdent, Instant, ZoneId) instead.
Copy a PersonIdent, but alter the clone's time stamp |
| public | PersonIdent(PersonIdent
original pi, Instant org.local time when, ZoneId time zone offset tz)Copy a PersonIdent, but alter the clone's time stamp |
| public | PersonIdent(PersonIdent
original pi, Date org.local time aWhen)
Deprecated
since 7.1. Use the variant with an Instant instead
Copy a |
| public | PersonIdent(PersonIdent
original pi, Instant org.local time as Instant aWhen)Copy a |
| public | PersonIdent(final String
a aName, final String java. object.a aEmailAddress, final Date java. object.local time stamp aWhen, final TimeZone time zone aTZ)
Deprecated
since 7.1. Use the variant with Instant and ZoneId instead
Construct a PersonIdent from simple data |
| public | PersonIdent(final String
a aName, String java. object.a aEmailAddress, Instant java. object.local time stamp aWhen, ZoneId time zone id zoneId)Construct a PersonIdent from simple data |
| public | PersonIdent(PersonIdent
original pi, long org.local time stamp aWhen, int time zone aTZ)
Deprecated
since 7.1. Use the variant with Instant and ZoneId instead
Copy a PersonIdent, but alter the clone's time stamp |
| private | |
| private | |
| public | PersonIdent(final String
a aName, final String java. object.a aEmailAddress, final long java. object.local time stamp aWhen, final int time zone aTZ)
Deprecated
since 7.1. Use the variant with Instant and ZoneId instead
Construct a |
| Modifier and Type | Method and Description |
|---|---|
| public static void | appendSanitized(StringBuilder
string builder to append to. r, String input string. str)Sanitize the given string for use in an identity and append to output. |
| public static void | appendTimezone(StringBuilder
string builder to append to. r, int timezone offset as in offset)getTimeZoneOffset().Format a timezone offset. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | |
| public String | |
| public static TimeZone | Returns: time zone object for the given offset.timezone offset as in tzOffset)getTimeZoneOffset().
Deprecated
since 7.2. use
getZoneId(int) instead
Get timezone object for the given offset. |
| public TimeZone | Returns: this person's declared time zone; null if time zone is unknown.
Deprecated
since 7.1. Use getZoneId instead
Get this person's declared time zone |
| public int | Returns: this person's declared time zone as minutes east of UTC. If the timezone is to the west of UTC it is negative.
Deprecated
since 7.1. Use
getZoneOffset() and read minutes from there
Get this person's declared time zone as minutes east of UTC. |
| public Date | |
| public Instant | |
| public static ZoneId | Returns: a ZoneId for this offset (UTC if invalid)as minutes east of UTC tzOffset)Translate a minutes offset into a ZoneId |
| public ZoneId | |
| public ZoneOffset | |
| public int | |
| public String | |
| public String |
| emailAddress | back to summary |
|---|---|
| private final String emailAddress | |
| name | back to summary |
|---|---|
| private final String name | |
| OFFSET_FORMATTER | back to summary |
|---|---|
| private static final DateTimeFormatter OFFSET_FORMATTER | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| tzOffset | back to summary |
|---|---|
| private final ZoneId tzOffset | |
| when | back to summary |
|---|---|
| private final Instant when | |
| PersonIdent | back to summary |
|---|---|
| public PersonIdent(Repository repo) Creates new PersonIdent from config info in repository, with current time. This new PersonIdent gets the info from the default committer as available from the configuration.
| |
| PersonIdent | back to summary |
|---|---|
| public PersonIdent(PersonIdent pi) Copy a
| |
| PersonIdent | back to summary |
|---|---|
| public PersonIdent(String aName, String aEmailAddress) Construct a new
| |
| PersonIdent | back to summary |
|---|---|
| public PersonIdent(String aName, String aEmailAddress, ProposedTimestamp when) Construct a new
| |
| PersonIdent | back to summary |
|---|---|
| public PersonIdent(PersonIdent pi, Date when, TimeZone tz)
Copy a PersonIdent, but alter the clone's time stamp
| |
| PersonIdent | back to summary |
|---|---|
| public PersonIdent(PersonIdent pi, Instant when, ZoneId tz) Copy a PersonIdent, but alter the clone's time stamp
| |
| PersonIdent | back to summary |
|---|---|
| public PersonIdent(PersonIdent pi, Date aWhen)
Deprecated since 7.1. Use the variant with an Instant instead Copy a
| |
| PersonIdent | back to summary |
|---|---|
| public PersonIdent(PersonIdent pi, Instant aWhen) Copy a
| |
| PersonIdent | back to summary |
|---|---|
| public PersonIdent(final String aName, final String aEmailAddress, final Date aWhen, final TimeZone aTZ)
Deprecated since 7.1. Use the variant with Instant and ZoneId instead Construct a PersonIdent from simple data
| |
| PersonIdent | back to summary |
|---|---|
| public PersonIdent(final String aName, String aEmailAddress, Instant aWhen, ZoneId zoneId) Construct a PersonIdent from simple data
| |
| PersonIdent | back to summary |
|---|---|
| public PersonIdent(PersonIdent pi, long aWhen, int aTZ)
Deprecated since 7.1. Use the variant with Instant and ZoneId instead Copy a PersonIdent, but alter the clone's time stamp
| |
| PersonIdent | back to summary |
|---|---|
| private PersonIdent(final String aName, final String aEmailAddress, Instant when) | |
| PersonIdent | back to summary |
|---|---|
| private PersonIdent(UserConfig config) | |
| PersonIdent | back to summary |
|---|---|
| public PersonIdent(final String aName, final String aEmailAddress, final long aWhen, final int aTZ)
Deprecated since 7.1. Use the variant with Instant and ZoneId instead Construct a
Whitespace in the name and email is preserved for the lifetime of this
object, but are trimmed by
| |
| appendSanitized | back to summary |
|---|---|
| public static void appendSanitized(StringBuilder r, String str) Sanitize the given string for use in an identity and append to output.
Trims whitespace from both ends and special characters
| |
| appendTimezone | back to summary |
|---|---|
| public static void appendTimezone(StringBuilder r, int offset) Format a timezone offset.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getEmailAddress | back to summary |
|---|---|
| public String getEmailAddress() Get email address of person
| |
| getName | back to summary |
|---|---|
| public String getName() Get name of person
| |
| getTimeZone | back to summary |
|---|---|
| public static TimeZone getTimeZone(int tzOffset)
Get timezone object for the given offset.
| |
| getTimeZone | back to summary |
|---|---|
| public TimeZone getTimeZone()
Deprecated since 7.1. Use getZoneId instead Get this person's declared time zone
| |
| getTimeZoneOffset | back to summary |
|---|---|
| public int getTimeZoneOffset()
Get this person's declared time zone as minutes east of UTC.
| |
| getWhen | back to summary |
|---|---|
| public Date getWhen()
Deprecated since 7.1. Use getWhenAsInstant instead Get timestamp
| |
| getWhenAsInstant | back to summary |
|---|---|
| public Instant getWhenAsInstant() Get when attribute as instant
| |
| getZoneId | back to summary |
|---|---|
| public static ZoneId getZoneId(int tzOffset) Translate a minutes offset into a ZoneId
| |
| getZoneId | back to summary |
|---|---|
| public ZoneId getZoneId() Get the time zone id
| |
| getZoneOffset | back to summary |
|---|---|
| public ZoneOffset getZoneOffset() Return the offset in this timezone at the specific time
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
Hashcode is based only on the email address and timestamp.
| |
| toExternalString | back to summary |
|---|---|
| public String toExternalString() Format for Git storage.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |