Package org.apache.jena.sparql.core
Class PathBlock
- java.lang.Object
-
- org.apache.jena.sparql.core.PathBlock
-
- All Implemented Interfaces:
java.lang.Iterable<TriplePath>
public class PathBlock extends java.lang.Object implements java.lang.Iterable<TriplePath>
A class whose purpose is to give a name to a collection of triple paths.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int i, TriplePath tp)voidadd(TriplePath tp)voidaddAll(PathBlock other)booleanequals(java.lang.Object other)booleanequiv(PathBlock other, NodeIsomorphismMap isoMap)TriplePathget(int i)java.util.List<TriplePath>getList()inthashCode()booleanisEmpty()java.util.ListIterator<TriplePath>iterator()intsize()java.lang.StringtoString()
-
-
-
Constructor Detail
-
PathBlock
public PathBlock()
-
PathBlock
public PathBlock(PathBlock other)
-
-
Method Detail
-
add
public void add(TriplePath tp)
-
addAll
public void addAll(PathBlock other)
-
add
public void add(int i, TriplePath tp)
-
get
public TriplePath get(int i)
-
iterator
public java.util.ListIterator<TriplePath> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<TriplePath>
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
getList
public java.util.List<TriplePath> getList()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
equiv
public boolean equiv(PathBlock other, NodeIsomorphismMap isoMap)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-