org.apache.stanbol.entityhub.servicesapi.util
Class TextIterator

java.lang.Object
  extended by org.apache.stanbol.entityhub.servicesapi.util.AdaptingIterator<Object,Text>
      extended by org.apache.stanbol.entityhub.servicesapi.util.TextIterator
All Implemented Interfaces:
Iterator<Text>

public class TextIterator
extends AdaptingIterator<Object,Text>
implements Iterator<Text>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.stanbol.entityhub.servicesapi.util.AdaptingIterator
AdaptingIterator.Adapter<T,A>
 
Constructor Summary
TextIterator(ValueFactory valueFactory, Iterator<Object> it, String... languages)
          Creates an instance that iterates over values and returns Text instances that confirm to the active languages.
 
Method Summary
 
Methods inherited from class org.apache.stanbol.entityhub.servicesapi.util.AdaptingIterator
hasNext, next, prepareNext, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Constructor Detail

TextIterator

public TextIterator(ValueFactory valueFactory,
                    Iterator<Object> it,
                    String... languages)
Creates an instance that iterates over values and returns Text instances that confirm to the active languages. If no languages are parsed or null is parsed as a language, this Iterator also creates and returns Text instances for String values.

Parameters:
valueFactory - the factory used to create text instances for String values
it - the iterator
languages - The active languages or no values to accept all languages


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.