Class Tuples<K,V>

java.lang.Object
org.patternfly.core.Tuples<K,V>
All Implemented Interfaces:
Iterable<Tuple<K,V>>
Direct Known Subclasses:
Breakpoints

public class Tuples<K,V> extends Object implements Iterable<Tuple<K,V>>
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    hasKey(K key)
     
    boolean
    hasValue(V value)
     
    boolean
     
     
    key(V value)
     
    int
     
     
     
    static <K, V> Tuples<K,V>
    tuples(List<Tuple<K,V>> tuples)
     
    static <K, V> Tuples<K,V>
    tuples(K key, V value)
     
    static <K, V> Tuples<K,V>
    tuples(K key1, V value1, K key2, V value2)
     
    static <K, V> Tuples<K,V>
    tuples(K key1, V value1, K key2, V value2, K key3, V value3)
     
    static <K, V> Tuples<K,V>
    tuples(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
     
    static <K, V> Tuples<K,V>
    tuples(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5)
     
    static <K, V> Tuples<K,V>
    tuples(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5, K key6, V value6)
     
    static <K, V> Tuples<K,V>
    tuples(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5, K key6, V value6, K key7, V value7)
     
    static <K, V> Tuples<K,V>
    tuples(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5, K key6, V value6, K key7, V value7, K key8, V value8)
     
    static <K, V> Tuples<K,V>
    tuples(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5, K key6, V value6, K key7, V value7, K key8, V value8, K key9, V value9)
     
    static <K, V> Tuples<K,V>
    tuples(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5, K key6, V value6, K key7, V value7, K key8, V value8, K key9, V value9, K key10, V value10)
     
    value(K key)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Method Details

    • tuples

      public static <K, V> Tuples<K,V> tuples(K key, V value)
    • tuples

      public static <K, V> Tuples<K,V> tuples(K key1, V value1, K key2, V value2)
    • tuples

      public static <K, V> Tuples<K,V> tuples(K key1, V value1, K key2, V value2, K key3, V value3)
    • tuples

      public static <K, V> Tuples<K,V> tuples(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
    • tuples

      public static <K, V> Tuples<K,V> tuples(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5)
    • tuples

      public static <K, V> Tuples<K,V> tuples(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5, K key6, V value6)
    • tuples

      public static <K, V> Tuples<K,V> tuples(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5, K key6, V value6, K key7, V value7)
    • tuples

      public static <K, V> Tuples<K,V> tuples(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5, K key6, V value6, K key7, V value7, K key8, V value8)
    • tuples

      public static <K, V> Tuples<K,V> tuples(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5, K key6, V value6, K key7, V value7, K key8, V value8, K key9, V value9)
    • tuples

      public static <K, V> Tuples<K,V> tuples(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5, K key6, V value6, K key7, V value7, K key8, V value8, K key9, V value9, K key10, V value10)
    • 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()