Class/Object

com.twitter.app

Flag

Related Docs: object Flag | package app

Permalink

class Flag[T] extends AnyRef

A single command-line flag, instantiated by a com.twitter.app.Flags instance. Its current value can be extracted via apply().

See also

com.twitter.app.Flags

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Flag
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(): T

    Permalink

    Return this flag's current value.

    Return this flag's current value. The default value is returned when the flag has not otherwise been set.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def defaultString(): String

    Permalink

    String representation of this flag's default value

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. val flaggable: Flaggable[T]

    Permalink
    Attributes
    protected
  12. def get: Option[T]

    Permalink

    Get the value if it has been set.

    Get the value if it has been set.

    Note

    if no user-defined value has been set, None will be returned even when a default value is supplied.

    See also

    Flag.getWithDefault

  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def getValue: Option[T]

    Permalink
    Attributes
    protected
  15. def getWithDefault: Option[T]

    Permalink

    Get the value if it has been set or if there is a default value supplied.

    Get the value if it has been set or if there is a default value supplied.

    See also

    Flag.get and Flag.isDefined if you are interested in determining if there is a supplied value.

  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. val help: String

    Permalink
  18. def isDefined: Boolean

    Permalink

    True if the flag has been set.

    True if the flag has been set.

    Note

    if no user-defined value has been set, false will be returned even when a default value is supplied.

  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def let(t: T)(f: ⇒ Unit): Unit

    Permalink

    Override the value of this flag with t, only for the scope of the current com.twitter.util.Local for the given function f.

  21. val name: String

    Permalink
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. def noArgumentOk: Boolean

    Permalink

    Indicates whether or not the flag is valid without an argument.

  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. def parse(): Unit

    Permalink

    Parse this flag with no argument.

  27. def parse(raw: String): Unit

    Permalink

    Parse value raw into this flag.

  28. def parsingDone: Boolean

    Permalink
    Attributes
    protected[this]
  29. def reset(): Unit

    Permalink

    Reset this flag's value

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

    Permalink

    String representation of this flag in -foo='bar' format, suitable for being used on the command line.

    String representation of this flag in -foo='bar' format, suitable for being used on the command line.

    Definition Classes
    Flag → AnyRef → Any
  32. def usageString: String

    Permalink
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped