final class Features extends AnyVal with Serializable
Features
describes a set of features described via
bitwise operators applied to ints, but made type safe.
This is like a special purpose BitSet
.
Currently used to describe the features of Scheduler.
- Alphabetic
- By Inheritance
- Features
- Serializable
- Serializable
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
def
+(feature: Flag): Features
Adds a feature to the set.
Adds a feature to the set.
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
contains(feature: Flag): Boolean
Tests if a given feature is in the set.
Tests if a given feature is in the set.
- Annotations
- @inline()
-
def
diff(other: Features): Features
Computes the difference between the source and another feature set, such that the new value contains the features of the source that are not in the other set.
Computes the difference between the source and another feature set, such that the new value contains the features of the source that are not in the other set.
- Annotations
- @inline()
- val flags: Flags
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
intersect(other: Features): Features
Longersects the source with another feature set, such that the new value will contain the flags that are contained by both.
Longersects the source with another feature set, such that the new value will contain the flags that are contained by both.
- Annotations
- @inline()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Features → Any
-
def
union(other: Features): Features
Computes the union between the source and another feature set, such that the new value contains the features of both.
Computes the union between the source and another feature set, such that the new value contains the features of both.
- Annotations
- @inline()