public final class SharedResourceUser extends java.lang.Object implements java.lang.Comparable<SharedResourceUser>
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<SharedResourceUser> |
NAME_FIRST_COMPARATOR
Comparator to return first by name, then by time (oldest first)
|
static java.util.Comparator<SharedResourceUser> |
OLDEST_FIRST_COMPARATOR
Comparator to return first by time (oldest first), then by name
|
Constructor and Description |
---|
SharedResourceUser(java.lang.String name,
java.time.ZonedDateTime creationTime)
Creates the resource user
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SharedResourceUser o) |
boolean |
equals(java.lang.Object o) |
java.time.ZonedDateTime |
getCreationTime()
Returns the CreationTime for the object
|
java.lang.String |
getName()
Returns the Name for the object
|
int |
hashCode() |
public static final java.util.Comparator<SharedResourceUser> NAME_FIRST_COMPARATOR
public static final java.util.Comparator<SharedResourceUser> OLDEST_FIRST_COMPARATOR
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
@NotNull public java.lang.String getName()
@NotNull public java.time.ZonedDateTime getCreationTime()
public int compareTo(@NotNull SharedResourceUser o)
compareTo
in interface java.lang.Comparable<SharedResourceUser>