Interface Entry<K,V>

Type Parameters:
K - the key type
V - the value type
All Known Implementing Classes:
AbstractMap.MapEntry, AbstractPriorityQueue.PQEntry, HeapAdaptablePriorityQueue.AdaptablePQEntry

public interface Entry<K,V>
Interface for a key-value pair.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the key stored in this entry.
    Returns the value stored in this entry.
  • Method Details

    • getKey

      K getKey()
      Returns the key stored in this entry.
      Returns:
      the entry's key
    • getValue

      V getValue()
      Returns the value stored in this entry.
      Returns:
      the entry's value