congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
TextIterator$TextAdapter
Code IndexAdd Tabnine to your IDE (free)

How to use
TextIterator$TextAdapter
in
org.apache.stanbol.entityhub.servicesapi.util

Best Java code snippets using org.apache.stanbol.entityhub.servicesapi.util.TextIterator$TextAdapter (Showing top 2 results out of 315)

origin: org.apache.stanbol/org.apache.stanbol.entityhub.servicesapi

/**
 * Creates an instance that iterates over values and returns {@link Text}
 * instances that confirm to the active languages. If no languages are parsed
 * or <code>null</code> is parsed as a language, this Iterator also creates
 * and returns {@link Text} instances for {@link String} values.
 * @param valueFactory the factory used to create text instances for String values
 * @param it the iterator
 * @param languages The active languages or no values to accept all languages
 */
public TextIterator(ValueFactory valueFactory,Iterator<Object> it,String...languages){
  super(it,new TextAdapter(valueFactory, languages),Text.class);
}
private static class TextAdapter implements Adapter<Object,Text>{
origin: apache/stanbol

/**
 * Creates an instance that iterates over values and returns {@link Text}
 * instances that confirm to the active languages. If no languages are parsed
 * or <code>null</code> is parsed as a language, this Iterator also creates
 * and returns {@link Text} instances for {@link String} values.
 * @param valueFactory the factory used to create text instances for String values
 * @param it the iterator
 * @param languages The active languages or no values to accept all languages
 */
public TextIterator(ValueFactory valueFactory,Iterator<Object> it,String...languages){
  super(it,new TextAdapter(valueFactory, languages),Text.class);
}
private static class TextAdapter implements Adapter<Object,Text>{
org.apache.stanbol.entityhub.servicesapi.utilTextIterator$TextAdapter

Most used methods

  • <init>

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now