Class

com.swoop.scala_util

BitFlags

Related Doc: package scala_util

Permalink

class BitFlags extends Serializable

Simple utility for managing bit flags based on an Int (32 bits). The implementation uses mutable state.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BitFlags
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BitFlags(value: Int = 0)

    Permalink

    value

    initial value for the bit flags

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from BitFlags to any2stringadd[BitFlags] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (BitFlags, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from BitFlags to ArrowAssoc[BitFlags] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def add(mask: Int): BitFlags.this.type

    Permalink

    Adds the 1 bits from the provided mask to the value.

    Adds the 1 bits from the provided mask to the value.

    mask

    the bit mask to add (using bit OR)

    returns

    the updated object

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clear(): BitFlags.this.type

    Permalink

    Sets the value to 0.

    Sets the value to 0.

    returns

    the updated object

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def containsAll(mask: Int): Boolean

    Permalink

    Returns true if all 1 bits in the provided mask are set to 1 in the value.

    Returns true if all 1 bits in the provided mask are set to 1 in the value.

    mask

    the mask to check

  11. def containsNone(mask: Int): Boolean

    Permalink

    Returns true if none of the 1 bits in the provided mask are set to 1 in the value.

    Returns true if none of the 1 bits in the provided mask are set to 1 in the value.

    mask

    the mask to check

  12. def containsSome(mask: Int): Boolean

    Permalink

    Returns true if some of the 1 bits in the provided mask are set to 1 in the value.

    Returns true if some of the 1 bits in the provided mask are set to 1 in the value.

    mask

    the mask to check

  13. def ensuring(cond: (BitFlags) ⇒ Boolean, msg: ⇒ Any): BitFlags

    Permalink
    Implicit information
    This member is added by an implicit conversion from BitFlags to Ensuring[BitFlags] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (BitFlags) ⇒ Boolean): BitFlags

    Permalink
    Implicit information
    This member is added by an implicit conversion from BitFlags to Ensuring[BitFlags] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): BitFlags

    Permalink
    Implicit information
    This member is added by an implicit conversion from BitFlags to Ensuring[BitFlags] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): BitFlags

    Permalink
    Implicit information
    This member is added by an implicit conversion from BitFlags to Ensuring[BitFlags] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from BitFlags to StringFormat[BitFlags] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. def remove(mask: Int): BitFlags.this.type

    Permalink

    Clears 1 the bits from the provided mask from the value.

    Clears 1 the bits from the provided mask from the value.

    mask

    the bit mask whose 1 bits will be added

    returns

    the updated object

  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toInt: Int

    Permalink

    Returns the underlying value.

  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. var value: Int

    Permalink

    initial value for the bit flags

    initial value for the bit flags

    Attributes
    protected
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def [B](y: B): (BitFlags, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from BitFlags to ArrowAssoc[BitFlags] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from BitFlags to any2stringadd[BitFlags]

Inherited by implicit conversion StringFormat from BitFlags to StringFormat[BitFlags]

Inherited by implicit conversion Ensuring from BitFlags to Ensuring[BitFlags]

Inherited by implicit conversion ArrowAssoc from BitFlags to ArrowAssoc[BitFlags]

Ungrouped