Top Inners Fields Constructors Methods
org.eclipse.collections.impl.tuple

public Class AbstractImmutableEntry<K, V>

extends Object
implements Map.Entry<K, V>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, java.util.Map.Entry
Known Direct Subclasses
org.eclipse.collections.impl.tuple.ImmutableEntry, org.eclipse.collections.impl.map.strategy.immutable.ImmutableEntryWithHashingStrategy
Imports
java.io.Serializable, java.util.Map, org.eclipse.collections.api.block.function.Function, org.eclipse.collections.api.tuple.Pair, org.eclipse.collections.impl.block.factory.Functions

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
AbstractImmutableEntry.KeyFunction<K>

Deprecated Since 6.2 - Kept for serialization compatibility only.
private static class
private static class
AbstractImmutableEntry.ValueFunction<V>

Deprecated Since 6.2 - Kept for serialization compatibility only.

Field Summary

Modifier and TypeField and Description
protected final K
private static final long
private static final AbstractImmutableEntry.PairFunction<?, ?>
protected final V

Constructor Summary

AccessConstructor and Description
public
AbstractImmutableEntry(K key, V value)

Method Summary

Modifier and TypeMethod and Description
public K
getKey()

Implements java.util.Map.Entry.getKey.

Returns the key corresponding to this entry.

public static <K> Function<Map.Entry<K, ?>, K>
getKeyFunction()
Deprecated Since 6.2 - Use Functions#getKeyFunction() instead.

public static <K, V> Function<Map.Entry<K, V>, Pair<K, V>>
public V
getValue()

Implements java.util.Map.Entry.getValue.

Returns the value corresponding to this entry.

public static <V> Function<Map.Entry<?, V>, V>
getValueFunction()
Deprecated Since 6.2 - Use Functions#getValueFunction() instead.

public V
setValue(V value)

Implements java.util.Map.Entry.setValue.

Replaces the value corresponding to this entry with the specified value (optional operation).

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the form {key}={value}.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

keyback to summary
protected final K key
serialVersionUIDback to summary
private static final long serialVersionUID
TO_PAIRback to summary
private static final AbstractImmutableEntry.PairFunction<?, ?> TO_PAIR
valueback to summary
protected final V value

Constructor Detail

AbstractImmutableEntryback to summary
public AbstractImmutableEntry(K key, V value)

Method Detail

getKeyback to summary
public K getKey()

Implements java.util.Map.Entry.getKey.

Doc from java.util.Map.Entry.getKey.

Returns the key corresponding to this entry.

Annotations
@Override
getKeyFunctionback to summary
public static <K> Function<Map.Entry<K, ?>, K> getKeyFunction()

Deprecated

Since 6.2 - Use Functions#getKeyFunction() instead.

Annotations
@Deprecated
getPairFunctionback to summary
public static <K, V> Function<Map.Entry<K, V>, Pair<K, V>> getPairFunction()
getValueback to summary
public V getValue()

Implements java.util.Map.Entry.getValue.

Doc from java.util.Map.Entry.getValue.

Returns the value corresponding to this entry. If the mapping has been removed from the backing map (by the iterator's remove operation), the results of this call are undefined.

Annotations
@Override
getValueFunctionback to summary
public static <V> Function<Map.Entry<?, V>, V> getValueFunction()

Deprecated

Since 6.2 - Use Functions#getValueFunction() instead.

Annotations
@Deprecated
setValueback to summary
public V setValue(V value)

Implements java.util.Map.Entry.setValue.

Doc from java.util.Map.Entry.setValue.

Replaces the value corresponding to this entry with the specified value (optional operation). (Writes through to the map.) The behavior of this call is undefined if the mapping has already been removed from the map (by the iterator's remove operation).

This implementation throws an UnsupportedOperationException. Override this method to support mutable map entries.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string representation of the form {key}={value}.

Annotations
@Override
org.eclipse.collections.impl.tuple back to summary

private Class AbstractImmutableEntry.KeyFunction<K>

extends Object
implements Function<Map.Entry<K, ?>, K>
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.tuple.AbstractImmutableEntry.KeyFunction
All Implemented Interfaces
org.eclipse.collections.api.block.function.Function, java.io.Serializable, java.util.function.Function
Annotations
@Deprecated

Deprecated

Since 6.2 - Kept for serialization compatibility only.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public K
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

KeyFunctionback to summary
private KeyFunction()

Method Detail

valueOfback to summary
public K valueOf(Map.Entry<K, ?> entry)

Implements org.eclipse.collections.api.block.function.Function.valueOf.

Annotations
@Override
org.eclipse.collections.impl.tuple back to summary

private Class AbstractImmutableEntry.PairFunction<K, V>

extends Object
implements Function<Map.Entry<K, V>, Pair<K, V>>
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.tuple.AbstractImmutableEntry.PairFunction
All Implemented Interfaces
org.eclipse.collections.api.block.function.Function, java.io.Serializable, java.util.function.Function

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Pair<K, V>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

PairFunctionback to summary
private PairFunction()

Method Detail

valueOfback to summary
public Pair<K, V> valueOf(Map.Entry<K, V> entry)

Implements org.eclipse.collections.api.block.function.Function.valueOf.

Annotations
@Override
org.eclipse.collections.impl.tuple back to summary

private Class AbstractImmutableEntry.ValueFunction<V>

extends Object
implements Function<Map.Entry<?, V>, V>
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.tuple.AbstractImmutableEntry.ValueFunction
All Implemented Interfaces
org.eclipse.collections.api.block.function.Function, java.io.Serializable, java.util.function.Function
Annotations
@Deprecated

Deprecated

Since 6.2 - Kept for serialization compatibility only.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public V
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

ValueFunctionback to summary
private ValueFunction()

Method Detail

valueOfback to summary
public V valueOf(Map.Entry<?, V> entry)

Implements org.eclipse.collections.api.block.function.Function.valueOf.

Annotations
@Override