org.openwms.core.util.lang
Interface ListExtractor<K,V>

Type Parameters:
K - Type of key
V - Type of value

public interface ListExtractor<K,V>

A ListExtractor.

Since:
0.1
Version:
$Revision: 1409 $
Author:
Heiko Scherrer

Method Summary
<T> K
extractKey(T listNode)
          From a list node of type T extract the key element.
<T> V
extractValue(T listNode)
          From a list node of type T extract the value.
 

Method Detail

extractKey

<T> K extractKey(T listNode)
From a list node of type T extract the key element.

Type Parameters:
T - Type of list node
Parameters:
listNode - The node to extract the key from
Returns:
the extracted key

extractValue

<T> V extractValue(T listNode)
From a list node of type T extract the value.

Type Parameters:
T - Type of list node
Parameters:
listNode - The node to extract the value from
Returns:
the extracted value


Copyright © 2005-2011 openwms.org. All Rights Reserved.