abstract class LooseEnum extends Enumeration
An enumeration class that optionally allows for capturing unknown
enumeration values and surfacing them in an unknowns
member set.
The values
set will never have an unknown enumeration value added to it.
To capture possible unknown enumeration values, use the applyOrUnknown
factory method rather than then usual apply
.
Limitation:
Using the +
method on Value
to build a ValueSet
will throw an
exception if an UnknownVal
is attempted to be used in this manner.
- Self Type
- LooseEnum
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- LooseEnum
- Enumeration
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- class Val extends Value with Serializable
- Attributes
- protected
- Definition Classes
- Enumeration
- Annotations
- @SerialVersionUID()
- abstract class Value extends Ordered[Value] with Serializable
- Definition Classes
- Enumeration
- Annotations
- @SerialVersionUID()
- class ValueSet extends AbstractSet[Value] with SortedSet[Value] with SortedSetOps[Value, SortedSet, ValueSet] with StrictOptimizedIterableOps[Value, Set, ValueSet] with Serializable
- Definition Classes
- Enumeration
- Annotations
- @SerialVersionUID()
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
- final def Value(i: Int, name: String): Value
- Attributes
- protected
- Definition Classes
- Enumeration
- final def Value(name: String): Value
- Attributes
- protected
- Definition Classes
- Enumeration
- final def Value(i: Int): Value
- Attributes
- protected
- Definition Classes
- Enumeration
- final def Value: Value
- Attributes
- protected
- Definition Classes
- Enumeration
- final def apply(x: Int): Value
- Definition Classes
- Enumeration
- final def applyOrUnknown(x: Int): Value
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def maxId: Int
- Definition Classes
- Enumeration
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- var nextId: Int
- Attributes
- protected
- Definition Classes
- Enumeration
- var nextName: Iterator[String]
- Attributes
- protected
- Definition Classes
- Enumeration
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def readResolve(): AnyRef
- Attributes
- protected
- Definition Classes
- Enumeration
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Enumeration → AnyRef → Any
- def unknowns: Set[Value]
- def values: ValueSet
- Definition Classes
- Enumeration
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def withName(s: String): Value
- Definition Classes
- Enumeration
- implicit object ValueOrdering extends Ordering[Value]
- Definition Classes
- Enumeration
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated