public final class Extractors extends Object
Extractor types.| Constructor and Description | 
|---|
| Extractors() | 
| Modifier and Type | Method and Description | 
|---|---|
| static Extractor<Boolean> | xboolean()Returns an Extractor for booleans. | 
| static Extractor<Boolean> | xboolean(Boolean defaultValue) | 
| static <T> Extractor<Collection<T>> | xcollect(TokenizerFactory scannerFactory,
        Extractor<T> extractor) | 
| static <T extends Tuple> | xcustom(Class<T> clazz,
       TokenizerFactory scannerFactory,
       Extractor... extractors)Returns an Extractor for a subclass of  Tuplewith a constructor that
 has the given extractor types that uses the givenTokenizerFactoryfor parsing the sub-fields. | 
| static Extractor<Double> | xdouble()Returns an Extractor for doubles. | 
| static Extractor<Double> | xdouble(Double defaultValue) | 
| static Extractor<Float> | xfloat()Returns an Extractor for floats. | 
| static Extractor<Float> | xfloat(Float defaultValue) | 
| static Extractor<Integer> | xint()Returns an Extractor for integers. | 
| static Extractor<Integer> | xint(Integer defaultValue)Returns an Extractor for integers. | 
| static Extractor<Long> | xlong()Returns an Extractor for longs. | 
| static Extractor<Long> | xlong(Long defaultValue)Returns an Extractor for longs. | 
| static <K,V> Extractor<Pair<K,V>> | xpair(TokenizerFactory scannerFactory,
     Extractor<K> one,
     Extractor<V> two)Returns an Extractor for pairs of the given types that uses the given  TokenizerFactoryfor parsing the sub-fields. | 
| static <A,B,C,D> Extractor<Tuple4<A,B,C,D>> | xquad(TokenizerFactory scannerFactory,
     Extractor<A> a,
     Extractor<B> b,
     Extractor<C> c,
     Extractor<D> d)Returns an Extractor for quads of the given types that uses the given  TokenizerFactoryfor parsing the sub-fields. | 
| static Extractor<String> | xstring()Returns an Extractor for strings. | 
| static Extractor<String> | xstring(String defaultValue) | 
| static <A,B,C> Extractor<Tuple3<A,B,C>> | xtriple(TokenizerFactory scannerFactory,
       Extractor<A> a,
       Extractor<B> b,
       Extractor<C> c)Returns an Extractor for triples of the given types that uses the given  TokenizerFactoryfor parsing the sub-fields. | 
| static Extractor<TupleN> | xtupleN(TokenizerFactory scannerFactory,
       Extractor... extractors)Returns an Extractor for an arbitrary number of types that uses the given  TokenizerFactoryfor parsing the sub-fields. | 
public static <T> Extractor<Collection<T>> xcollect(TokenizerFactory scannerFactory, Extractor<T> extractor)
public static <K,V> Extractor<Pair<K,V>> xpair(TokenizerFactory scannerFactory, Extractor<K> one, Extractor<V> two)
TokenizerFactory
 for parsing the sub-fields.public static <A,B,C> Extractor<Tuple3<A,B,C>> xtriple(TokenizerFactory scannerFactory, Extractor<A> a, Extractor<B> b, Extractor<C> c)
TokenizerFactory
 for parsing the sub-fields.public static <A,B,C,D> Extractor<Tuple4<A,B,C,D>> xquad(TokenizerFactory scannerFactory, Extractor<A> a, Extractor<B> b, Extractor<C> c, Extractor<D> d)
TokenizerFactory
 for parsing the sub-fields.public static Extractor<TupleN> xtupleN(TokenizerFactory scannerFactory, Extractor... extractors)
TokenizerFactory
 for parsing the sub-fields.public static <T extends Tuple> Extractor<T> xcustom(Class<T> clazz, TokenizerFactory scannerFactory, Extractor... extractors)
Tuple with a constructor that
 has the given extractor types that uses the given TokenizerFactory
 for parsing the sub-fields.Copyright © 2017 The Apache Software Foundation. All rights reserved.