com.hammurapi.extract

## Class ExtractorUtil

- java.lang.Object
- - com.hammurapi.extract.ExtractorUtil

-     public class ExtractorUtil
      extends Object

  Utility class.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <T,V,C> Mappable<T,V,C>` | `toMappable(Extractor<T,V,C> source)`
    `static <T,C> Predicate<T,C>` | `wrap(Extractor<T,Boolean,C> extractor)` Wraps extractor into predicate, if given extractor is not already a predicate.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### wrap

          public static <T,C> Predicate<T,C> wrap(Extractor<T,Boolean,C> extractor)

      Wraps extractor into predicate, if given extractor is not already a predicate.
      Type Parameters:
        `T` -
        `C` -
      Parameters:
        `extractor` -
      Returns:

    - #### toMappable

          public static <T,V,C> Mappable<T,V,C> toMappable(Extractor<T,V,C> source)

      Type Parameters:
        `T` -
        `V` -
        `C` -
      Parameters:
        `source` - Source extractor.
      Returns:
        Instance of mappable if extractor is mappable or its parameter indices is empty. Null otherwise.