public abstract class BadgeIdOrgIdEntity
extends java.lang.Object
BadgeIdOrgIdEntity abstract class wraps a badge ID with an organization ID,
along with certain other attributes pertaining to an organization. Two BadgeIdOrgIdEntity
objects are considered equal if their badgeId() and orgId() are the same.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CREATED_AT
Default badge creation time in milliseconds.
|
static int |
DEFAULT_RECOVERED_AT
Default badge recovery time in milliseconds.
|
static int |
DEFAULT_SORT_ORDER
Default sort order.
|
static int |
INVALID_BADGE_ID
Invalid badge ID.
|
static int |
INVALID_ORG_ID
Invalid organization ID.
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
badgeId()
Returns an int of the identification number of the badge.
|
abstract long |
createdAt()
Returns a long of the time in milliseconds at which the badge was created in an organization.
|
abstract java.lang.String |
credential()
Returns a String of the credentials associated with the badge within an organization.
|
abstract int |
orgId()
Returns an int of the identification number of the organization.
|
abstract long |
recoveredAt()
Returns a long of the time in milliseconds at which the badge was recovered in an
organization.
|
abstract long |
sortOrder()
Returns a long of the sort order of badges in an organization.
|
abstract BadgeIdOrgIdEntity |
withCredential(java.lang.String credential)
Returns a
BadgeIdOrgIdEntity object with an added credential() attribute. |
abstract BadgeIdOrgIdEntity |
withRecoveredAt(long recoveredAt)
Returns a
BadgeIdOrgIdEntity object with an added recoveredAt() attribute. |
abstract BadgeIdOrgIdEntity |
withSortOrder(long sortOrder)
Returns a
BadgeIdOrgIdEntity object with an added sortOrder() attribute. |
public static final int INVALID_ORG_ID
public static final int INVALID_BADGE_ID
public static final int DEFAULT_CREATED_AT
public static final int DEFAULT_RECOVERED_AT
public static final int DEFAULT_SORT_ORDER
public abstract int badgeId()
public abstract int orgId()
@Nullable public abstract java.lang.String credential()
public abstract long sortOrder()
DEFAULT_SORT_ORDER = 0.public abstract long createdAt()
public abstract long recoveredAt()
public abstract BadgeIdOrgIdEntity withSortOrder(long sortOrder)
BadgeIdOrgIdEntity object with an added sortOrder() attribute.sortOrder - the sort order of badges in an organizationBadgeIdOrgIdEntity object with an added sortOrder() attribute.public abstract BadgeIdOrgIdEntity withCredential(java.lang.String credential)
BadgeIdOrgIdEntity object with an added credential() attribute.credential - the credentials associated with the badge within an organizationBadgeIdOrgIdEntity object with an added credential() attribute.public abstract BadgeIdOrgIdEntity withRecoveredAt(long recoveredAt)
BadgeIdOrgIdEntity object with an added recoveredAt() attribute.recoveredAt - the time in milliseconds at which the badge was recovered in an
organizationBadgeIdOrgIdEntity object with an added recoveredAt() attribute.