object Features extends Serializable
- Alphabetic
- By Inheritance
- Features
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
Flag = compat.Features.Flag
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
Longinto aFlagvia flag. -
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.
-
type
Flags = compat.Features.Flags
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. -
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
empty: Features
Reusable, empty Features reference.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flag(value: Long): Flag
Wraps a
Longvalue into a Flag. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()