org.xmlecho.palomar.security
Class PermBits

java.lang.Object
  extended byjava.util.BitSet
      extended byorg.xmlecho.palomar.security.PermBits
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class PermBits
extends java.util.BitSet

See Also:
Serialized Form

Constructor Summary
PermBits(int flags)
          constructs a 32 bit BitSet to represent permissions.
 
Method Summary
static java.util.BitSet toBits(int src)
          converts an int into a 32 bit BitSet
 int toInt()
          returns an integer representation of the 32 bits
static int toInt(java.util.BitSet src)
          converts a Bitset into an int
 
Methods inherited from class java.util.BitSet
and, andNot, cardinality, clear, clear, clear, clone, equals, flip, flip, get, get, hashCode, intersects, isEmpty, length, nextClearBit, nextSetBit, or, set, set, set, set, size, toString, xor
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PermBits

public PermBits(int flags)
constructs a 32 bit BitSet to represent permissions.

Parameters:
flags - 32 bits represented as an integer
Method Detail

toInt

public int toInt()
returns an integer representation of the 32 bits


toBits

public static java.util.BitSet toBits(int src)
converts an int into a 32 bit BitSet


toInt

public static int toInt(java.util.BitSet src)
converts a Bitset into an int