final class AttributeMap extends AnyRef
An immutable map where an AttributeKey for a fixed type T
can only be associated with values of type T
.
Because the equality of keys is based on reference, it is therefore possible for this map to contain mappings
for keys with the same label and same types.
- Source
- AttributeMap.scala
- Alphabetic
- By Inheritance
- AttributeMap
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from AttributeMap to any2stringadd[AttributeMap] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
++(o: AttributeMap): AttributeMap
Combines the mappings in
o
with the mappings in this map, with mappings ino
taking precedence over existing mappings. -
def
++(o: Iterable[AttributeEntry[_]]): AttributeMap
Adds the mappings in
o
to this map, with mappings ino
taking precedence over existing mappings. -
def
->[B](y: B): (AttributeMap, B)
- Implicit
- This member is added by an implicit conversion from AttributeMap to ArrowAssoc[AttributeMap] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[T](k: AttributeKey[T]): T
Gets the value of type
T
associated with the keyk
. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
contains[T](k: AttributeKey[T]): Boolean
Returns true if this map contains a mapping for
k
. -
def
ensuring(cond: (AttributeMap) ⇒ Boolean, msg: ⇒ Any): AttributeMap
- Implicit
- This member is added by an implicit conversion from AttributeMap to Ensuring[AttributeMap] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (AttributeMap) ⇒ Boolean): AttributeMap
- Implicit
- This member is added by an implicit conversion from AttributeMap to Ensuring[AttributeMap] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): AttributeMap
- Implicit
- This member is added by an implicit conversion from AttributeMap to Ensuring[AttributeMap] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): AttributeMap
- Implicit
- This member is added by an implicit conversion from AttributeMap to Ensuring[AttributeMap] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
entries: Iterable[AttributeEntry[_]]
All mappings in this map.
All mappings in this map. The AttributeEntry type preserves the typesafety of mappings, although the specific types are unknown.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from AttributeMap to StringFormat[AttributeMap] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
def
get[T](k: AttributeKey[T]): Option[T]
Gets the value of type
T
associated with the keyk
orNone
if no value is associated. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
isEmpty: Boolean
true
if there are no mappings in this map,false
if there are. -
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
keys: Iterable[AttributeKey[_]]
All keys with defined mappings.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
put[T](k: AttributeKey[T], value: T): AttributeMap
Adds the mapping
k -> value
to this map, replacing any existing mapping fork
. -
def
remove[T](k: AttributeKey[T]): AttributeMap
Returns this map without the mapping for
k
. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
→[B](y: B): (AttributeMap, B)
- Implicit
- This member is added by an implicit conversion from AttributeMap to ArrowAssoc[AttributeMap] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc