org.op4j.operators.qualities
Interface ExtractableMapOperator<K,V>

All Known Subinterfaces:
ILevel0BuildingMapOperator<I,K,V>, ILevel0MapOperator<I,K,V>
All Known Implementing Classes:
Level0BuildingMapOperator, Level0MapOperator, Level0MapOperator

public interface ExtractableMapOperator<K,V>

This interface defines methods for extracting keys (discarding values) or values (discarding keys) in operators holding map target objects.

Since:
1.0
Author:
Daniel Fernández

Method Summary
 Operator extractKeys()
           Extracts only the keys of the map (discarding values) and creates an operator which will hold these keys as a target object of type Set.
 Operator extractValues()
           Extracts only the values of the map (discarding keys) and creates an operator which will hold these values as a target object of type List.
 

Method Detail

extractKeys

Operator extractKeys()

Extracts only the keys of the map (discarding values) and creates an operator which will hold these keys as a target object of type Set.

Returns:
an operator with the set of keys as a target object

extractValues

Operator extractValues()

Extracts only the values of the map (discarding keys) and creates an operator which will hold these values as a target object of type List.

Returns:
an operator with the list of values as a target object


Copyright © 2012 The OP4J team. All Rights Reserved.