public abstract class KeyModel
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
areContentsTheSame(KeyModel newItem)
Returns a boolean that represents whether or not the contents of two keys are the same.
|
boolean |
areItemsTheSame(KeyModel otherKeyModel)
Returns a boolean that represents whether or not the items of two keys are the same.
|
abstract int |
badgeId()
Returns an int of the identification number of the badge.
|
abstract java.lang.String |
badgeName()
Returns a String of the name of the badge.
|
abstract java.lang.String |
keyColor()
Returns a String of the color of the key.
|
abstract KeyEntity |
keyEntity()
Returns the
KeyEntity object that wraps the core attributes pertaining to the key. |
abstract int |
localKeyOrder()
Returns an int of the key sort order on the device.
|
abstract int |
orgId()
Returns an int of the identification number of the organization.
|
abstract java.lang.String |
serverUrl()
Returns a String of the URL of the server
|
abstract KeyModel |
withKeyEntity(KeyEntity keyEntity)
Constructor for a
KeyModel object with the keyEntity set. |
public abstract KeyEntity keyEntity()
KeyEntity object that wraps the core attributes pertaining to the key.
Used in the Object.hashCode() and Object.equals(Object) implementations.KeyEntity object.public abstract int orgId()
public abstract int badgeId()
public abstract java.lang.String badgeName()
public abstract java.lang.String keyColor()
public abstract java.lang.String serverUrl()
public abstract int localKeyOrder()
public abstract KeyModel withKeyEntity(KeyEntity keyEntity)
KeyModel object with the keyEntity set.public boolean areContentsTheSame(KeyModel newItem)
newItem - See KeyModeltrue if the two keys have the same name and are both a favorite key;
false otherwise.public boolean areItemsTheSame(KeyModel otherKeyModel)
otherKeyModel - See KeyModeltrue if the two keys have the same key ID;
false otherwise.