Packages

object Features extends Serializable

Source
Features.scala
Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Features
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. abstract type Flag <: Long with FlagTag

    Encodes a feature flag, stored as a Long.

    Encodes a feature flag, stored as a Long.

    Note that feature flags should be powers of 2, because they'll get added to the set via bitwise arithmetic.

    Example:

    val RED   = Features.flag(1)
    val GREEN = Features.flag(2)
    val BLUE  = Features.flag(4)
    val WHITE = Features.flag(8)

    You can wrap a Long into a Flag via flag.

  2. trait FlagTag extends Any

    Encoding for the newtype we're defining, used to make Flag and Flags type safe (instead of usage of Long), but without the boxing.

    Encoding for the newtype we're defining, used to make Flag and Flags type safe (instead of usage of Long), but without the boxing.

    Inspired by the alexknvl/newtypes project.

  3. abstract type Flags <: Long with FlagsTag

    Encodes a set of Flag values.

    Encodes a set of Flag values.

    Internally this is still a Long, but has its own type for type safety reasons.

  4. trait FlagsTag extends Any

    Encoding for the newtype we're defining, used to make Flag and Flags type safe (instead of usage of Long), but without the boxing.

    Encoding for the newtype we're defining, used to make Flag and Flags type safe (instead of usage of Long), but without the boxing.

    Inspired by the alexknvl/newtypes project.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(flags: Flag*): Features

    Builds a new Features instance.

    Builds a new Features instance.

    flags

    is a list of feature flags to instantiate the value with.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. val empty: Features

    Reusable, empty Features reference.

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. def flag(value: Long): Flag

    Wraps a Long value into a Flag.

    Wraps a Long value into a Flag.

    Annotations
    @inline()
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped