org.op4j.operators.qualities
Interface ReplaceableIfNullOperator<T>

All Known Subinterfaces:
ILevel0ArrayOperator<I,T>, ILevel0BuildingMapOperator<I,K,V>, ILevel0GenericUniqOperator<I,T>, ILevel0ListOperator<I,T>, ILevel0MapOperator<I,K,V>, ILevel0SetOperator<I,T>, ILevel1ArrayElementsOperator<I,T>, ILevel1ListElementsOperator<I,T>, ILevel1SetElementsOperator<I,T>, ILevel2MapEntriesValueOperator<I,K,V>
All Known Implementing Classes:
Level0ArrayOperator, Level0ArrayOperator, Level0BuildingMapOperator, Level0GenericUniqOperator, Level0GenericUniqOperator, Level0ListOperator, Level0ListOperator, Level0MapOperator, Level0MapOperator, Level0SetOperator, Level0SetOperator, Level1ArrayElementsOperator, Level1ArrayElementsOperator, Level1ListElementsOperator, Level1ListElementsOperator, Level1SetElementsOperator, Level1SetElementsOperator, Level2MapEntriesValueOperator, Level2MapEntriesValueOperator

public interface ReplaceableIfNullOperator<T>

This interface contains methods for replacing targets if they are null.

Since:
1.0
Author:
Daniel Fernández

Method Summary
 ReplaceableIfNullOperator<T> replaceIfNullWith(T replacement)
           Replaces the current target object with the specified replacement if the current target is null.
 

Method Detail

replaceIfNullWith

ReplaceableIfNullOperator<T> replaceIfNullWith(T replacement)

Replaces the current target object with the specified replacement if the current target is null.

Parameters:
replacement - the object which will replace the current target object if target is null.
Returns:
an operator containing the original target object if it was not null, or the new one if null.


Copyright © 2012 The OP4J team. All Rights Reserved.