c

mythtv.util

LooseEnum

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
Enumeration, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LooseEnum
  2. Enumeration
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new LooseEnum()
  2. new LooseEnum(initial: Int)

Type Members

  1. class Val extends Value with Serializable
    Attributes
    protected
    Definition Classes
    Enumeration
    Annotations
    @SerialVersionUID()
  2. abstract class Value extends Ordered[Value] with Serializable
    Definition Classes
    Enumeration
    Annotations
    @SerialVersionUID()
  3. 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

  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. final def Value(i: Int, name: String): Value
    Attributes
    protected
    Definition Classes
    Enumeration
  5. final def Value(name: String): Value
    Attributes
    protected
    Definition Classes
    Enumeration
  6. final def Value(i: Int): Value
    Attributes
    protected
    Definition Classes
    Enumeration
  7. final def Value: Value
    Attributes
    protected
    Definition Classes
    Enumeration
  8. final def apply(x: Int): Value
    Definition Classes
    Enumeration
  9. final def applyOrUnknown(x: Int): Value
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def maxId: Int
    Definition Classes
    Enumeration
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. var nextId: Int
    Attributes
    protected
    Definition Classes
    Enumeration
  20. var nextName: Iterator[String]
    Attributes
    protected
    Definition Classes
    Enumeration
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. def readResolve(): AnyRef
    Attributes
    protected
    Definition Classes
    Enumeration
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    Enumeration → AnyRef → Any
  26. def unknowns: Set[Value]
  27. def values: ValueSet
    Definition Classes
    Enumeration
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def withName(s: String): Value
    Definition Classes
    Enumeration
  32. implicit object ValueOrdering extends Ordering[Value]
    Definition Classes
    Enumeration

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Enumeration

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped