Class Pair<T>

java.lang.Object
org.aksw.jena_sparql_api.sparql_path2.Pair<T>
Type Parameters:
T -
All Implemented Interfaces:
Serializable, Iterable<T>, Map.Entry<T,T>
Direct Known Subclasses:
VertexClass

public class Pair<T> extends Object implements Map.Entry<T,T>, Iterable<T>, Serializable
A pair is a collection having 2 entries of same type Note: For a pair with two different types, use Map.SimpleEntry
Author:
raven
See Also:
  • Field Details

    • key

      protected T key
    • value

      protected T value
  • Constructor Details

    • Pair

      protected Pair(Map.Entry<? extends T,? extends T> entry)
    • Pair

      public Pair(T key, T value)
  • Method Details