Class Tuples<K,V>

java.lang.Object
org.patternfly.core.Tuples<K,V>
Type Parameters:
K - The type of the keys.
V - The type of the values.
All Implemented Interfaces:
Iterable<Tuple<K,V>>
Direct Known Subclasses:
Breakpoints

public class Tuples<K,V> extends Object implements Iterable<Tuple<K,V>>
An ordered collection of Tuple instances with lookup by key or value.
  • Method Details

    • tuples

      @SafeVarargs public static <K,V> Tuples<K,V> tuples(Tuple<K,V>... tuples)
    • tuples

      public static <K,V> Tuples<K,V> tuples(List<Tuple<K,V>> tuples)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hasKey

      public boolean hasKey(K key)
    • hasValue

      public boolean hasValue(V value)
    • key

      public K key(V value)
    • value

      public V value(K key)
    • isEmpty

      public boolean isEmpty()
    • size

      public int size()
    • iterator

      public Iterator<Tuple<K,V>> iterator()
      Specified by:
      iterator in interface Iterable<K>
    • stream

      public Stream<Tuple<K,V>> stream()