org.aksw.commons.graph
Class GraphTripleCollectionView

java.lang.Object
  extended by java.util.AbstractCollection<com.hp.hpl.jena.graph.Triple>
      extended by org.aksw.commons.graph.GraphTripleCollectionView
All Implemented Interfaces:
Iterable<com.hp.hpl.jena.graph.Triple>, Collection<com.hp.hpl.jena.graph.Triple>

public class GraphTripleCollectionView
extends AbstractCollection<com.hp.hpl.jena.graph.Triple>

A Collection<Triple> view over a graph. Warning: The underlying iterator is not closed. TODO Maybe close at least on consumption/exception of this iterator. Only use with memory graphs.

Author:
raven

Constructor Summary
GraphTripleCollectionView(com.hp.hpl.jena.graph.Graph graph)
           
 
Method Summary
 Iterator<com.hp.hpl.jena.graph.Triple> iterator()
           
 int size()
           
 
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

GraphTripleCollectionView

public GraphTripleCollectionView(com.hp.hpl.jena.graph.Graph graph)
Method Detail

iterator

public Iterator<com.hp.hpl.jena.graph.Triple> iterator()
Specified by:
iterator in interface Iterable<com.hp.hpl.jena.graph.Triple>
Specified by:
iterator in interface Collection<com.hp.hpl.jena.graph.Triple>
Specified by:
iterator in class AbstractCollection<com.hp.hpl.jena.graph.Triple>

size

public int size()
Specified by:
size in interface Collection<com.hp.hpl.jena.graph.Triple>
Specified by:
size in class AbstractCollection<com.hp.hpl.jena.graph.Triple>


Copyright © 2012. All Rights Reserved.