trait ID[T] extends AnyRef
Generic type to represent all kinds of identifiers in ScalaNeko. The type parameter refers to the type of value of the identifiers and depends on each kind of identifiers.
The main subclasses relevant to a protocol programmer are:
- T
type of the value encapsulated in the identifier
- Alphabetic
- By Inheritance
- ID
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Type Members
Abstract Value Members
-
abstract
def
idWith(newID: T): SameType
Returns a new instance of the same type of identifier initialized with the value given as parameter.
-
abstract
def
name: String
Output-friendly string representation of the identifier.
Output-friendly string representation of the identifier.
- returns
string representation
-
abstract
def
value: T
Value encapsulated by the identifier.
Value encapsulated by the identifier.
- returns
value of the identifier
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (ID[T], B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- def ensuring(cond: (ID[T]) ⇒ Boolean, msg: ⇒ Any): ID[T]
- def ensuring(cond: (ID[T]) ⇒ Boolean): ID[T]
- def ensuring(cond: Boolean, msg: ⇒ Any): ID[T]
- def ensuring(cond: Boolean): ID[T]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- 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
-
def
map(f: (T) ⇒ T): SameType
Applies a function to the value of the identifier and returns a new identifier with the result.
Applies a function to the value of the identifier and returns a new identifier with the result.
- f
function to apply on the value
- returns
identifier with the result of applying
f()
-
def
map2[B <: T](that: ID[B])(f: (T, B) ⇒ T): SameType
Applies a function combining the values of two identifiers and returns a new identifier with the result.
Applies a function combining the values of two identifiers and returns a new identifier with the result.
- B
type of value of the other identifier
- that
other identifier to combine
- f
function to apply on the values of the two identifiers
- returns
identifier with the result of applying
f()
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def →[B](y: B): (ID[T], B)