|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.data.keyring.KeyPermission
public abstract class KeyPermission
Class for holding a keyId and a permission value.
It implements the Comparable
interface to
be able to sort a List
by the keyId value.
Note! The compareTo
method of this class
is not consistent with the equals
method of
any of the subclasses. Ie. the compareTo
method may return 0, while the equals
method returns FALSE. This is because we need to compare
subclasses to each other while sorting a List
.
Field Summary | |
---|---|
(package private) int |
keyId
|
(package private) int |
permission
|
Constructor Summary | |
---|---|
KeyPermission()
Create a new KeyPermission object. |
Method Summary | |
---|---|
int |
compareTo(KeyPermission other)
Compare the keyId of this object to the keyId of another KeyPermission object. |
int |
getKeyId()
Get the id of the key. |
int |
getPermission()
Get the permission. |
void |
setKeyId(int keyId)
Set the id of the key. |
void |
setPermission(int permission)
Set the permission. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
int keyId
int permission
Constructor Detail |
---|
public KeyPermission()
KeyPermission
object.
Method Detail |
---|
public final int getKeyId()
public final void setKeyId(int keyId)
public final int getPermission()
public final void setPermission(int permission)
public final int compareTo(KeyPermission other)
KeyPermission
object.
compareTo
in interface Comparable<KeyPermission>
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |