Entry
Represents a key/value pair held by a Map.
Map entries obtained from the iteration of Map.entries set are not supposed to be stored separately or used long after they are obtained. The behavior of an entry is unspecified if the backing map has been modified after the entry was obtained.
To create an immutable entry not connected to any map, one can use Map.Entry.copy function.
Entry implementations must override Any.toString, Any.equals and Any.hashCode functions and provide implementations such that:
Entry.toString should return a string representation of the key-value pair in form of
key=value.Entry.equals should consider any two instances of Entry equal if their keys are equal and values are equal.
Entry.hashCode should be computed as exclusive or (XOR) of hash codes corresponding to a key and a value:
key.hashCode() xor value.hashCode()
Since Kotlin
1.0Parameters
the type of the entry key. The entry is covariant in its key type.
the type of the entry value. The entry is covariant in its value type.
Inheritors
Represents a key/value pair held by a Map.
Map entries obtained from the iteration of Map.entries set are not supposed to be stored separately or used long after they are obtained. The behavior of an entry is unspecified if the backing map has been modified after the entry was obtained.
To create an immutable entry not connected to any map, one can use Map.Entry.copy function.
Entry implementations must override Any.toString, Any.equals and Any.hashCode functions and provide implementations such that:
Entry.toString should return a string representation of the key-value pair in form of
key=value.Entry.equals should consider any two instances of Entry equal if their keys are equal and values are equal.
Entry.hashCode should be computed as exclusive or (XOR) of hash codes corresponding to a key and a value:
key.hashCode() xor value.hashCode()
Since Kotlin
1.1Parameters
the type of the entry key. The entry is covariant in its key type.
the type of the entry value. The entry is covariant in its value type.
Inheritors
Represents a key/value pair held by a Map.
Map entries obtained from the iteration of Map.entries set are not supposed to be stored separately or used long after they are obtained. The behavior of an entry is unspecified if the backing map has been modified after the entry was obtained.
To create an immutable entry not connected to any map, one can use Map.Entry.copy function.
Entry implementations must override Any.toString, Any.equals and Any.hashCode functions and provide implementations such that:
Entry.toString should return a string representation of the key-value pair in form of
key=value.Entry.equals should consider any two instances of Entry equal if their keys are equal and values are equal.
Entry.hashCode should be computed as exclusive or (XOR) of hash codes corresponding to a key and a value:
key.hashCode() xor value.hashCode()
Since Kotlin
1.0Parameters
the type of the entry key. The entry is covariant in its key type.
the type of the entry value. The entry is covariant in its value type.
Inheritors
Represents a key/value pair held by a Map.
Map entries obtained from the iteration of Map.entries set are not supposed to be stored separately or used long after they are obtained. The behavior of an entry is unspecified if the backing map has been modified after the entry was obtained.
To create an immutable entry not connected to any map, one can use Map.Entry.copy function.
Entry implementations must override Any.toString, Any.equals and Any.hashCode functions and provide implementations such that:
Entry.toString should return a string representation of the key-value pair in form of
key=value.Entry.equals should consider any two instances of Entry equal if their keys are equal and values are equal.
Entry.hashCode should be computed as exclusive or (XOR) of hash codes corresponding to a key and a value:
key.hashCode() xor value.hashCode()
Since Kotlin
1.3Parameters
the type of the entry key. The entry is covariant in its key type.
the type of the entry value. The entry is covariant in its value type.
Inheritors
Represents a key/value pair held by a Map.
Map entries obtained from the iteration of Map.entries set are not supposed to be stored separately or used long after they are obtained. The behavior of an entry is unspecified if the backing map has been modified after the entry was obtained.
To create an immutable entry not connected to any map, one can use Map.Entry.copy function.
Entry implementations must override Any.toString, Any.equals and Any.hashCode functions and provide implementations such that:
Entry.toString should return a string representation of the key-value pair in form of
key=value.Entry.equals should consider any two instances of Entry equal if their keys are equal and values are equal.
Entry.hashCode should be computed as exclusive or (XOR) of hash codes corresponding to a key and a value:
key.hashCode() xor value.hashCode()
Since Kotlin
1.8Parameters
the type of the entry key. The entry is covariant in its key type.
the type of the entry value. The entry is covariant in its value type.
Inheritors
Represents a key/value pair held by a Map.
Map entries obtained from the iteration of Map.entries set are not supposed to be stored separately or used long after they are obtained. The behavior of an entry is unspecified if the backing map has been modified after the entry was obtained.
To create an immutable entry not connected to any map, one can use Map.Entry.copy function.
Entry implementations must override Any.toString, Any.equals and Any.hashCode functions and provide implementations such that:
Entry.toString should return a string representation of the key-value pair in form of
key=value.Entry.equals should consider any two instances of Entry equal if their keys are equal and values are equal.
Entry.hashCode should be computed as exclusive or (XOR) of hash codes corresponding to a key and a value:
key.hashCode() xor value.hashCode()
Since Kotlin
1.8Parameters
the type of the entry key. The entry is covariant in its key type.
the type of the entry value. The entry is covariant in its value type.