org.apache.stanbol.entityhub.servicesapi.util
Interface AdaptingIterator.Adapter<T,A>

Type Parameters:
T -
A -
Enclosing class:
AdaptingIterator<T,A>

public static interface AdaptingIterator.Adapter<T,A>

Adapts values of type T to values of type A. null indicated that the adaption is not possible for the current value of T

Author:
Rupert Westenthaler

Method Summary
 A adapt(T value, Class<A> type)
          Converts the value of type T to a value of type A.
 

Method Detail

adapt

A adapt(T value,
        Class<A> type)
Converts the value of type T to a value of type A. If an instance of T can not be converted to A, than null is returned

Parameters:
value - the incoming value
type - the target type
Returns:
the converted value or null if the parsed value is null or the parsed value can not be converted


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