org.apache.stanbol.entityhub.servicesapi.util
Class TextIterator
java.lang.Object
org.apache.stanbol.entityhub.servicesapi.util.AdaptingIterator<Object,Text>
org.apache.stanbol.entityhub.servicesapi.util.TextIterator
- All Implemented Interfaces:
- Iterator<Text>
public class TextIterator
- extends AdaptingIterator<Object,Text>
- implements Iterator<Text>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 valuesit - the iteratorlanguages - The active languages or no values to accept all languages
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.