net.sf.mmm.util.nls.impl.formatter
Class NlsFormatterChoice.Condition

java.lang.Object
  extended by net.sf.mmm.util.nls.impl.formatter.NlsFormatterChoice.Condition
All Implemented Interfaces:
Filter<Object>
Enclosing class:
NlsFormatterChoice

private class NlsFormatterChoice.Condition
extends Object
implements Filter<Object>

This inner class represents a single choice.


Field Summary
private  Comparator comparator
          The Comparator.
private  Object comparatorArgument
          The argument for the comparator.
 
Constructor Summary
NlsFormatterChoice.Condition(Comparator comparator, Object comparatorArgument)
          The constructor.
 
Method Summary
 boolean accept(Object value)
          This method determines if the given value should be accepted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

comparator

private final Comparator comparator
The Comparator.


comparatorArgument

private final Object comparatorArgument
The argument for the comparator.

Constructor Detail

NlsFormatterChoice.Condition

public NlsFormatterChoice.Condition(Comparator comparator,
                                    Object comparatorArgument)
The constructor.

Parameters:
comparator - is the comparator.
comparatorArgument - is the comparatorArgument.
Method Detail

accept

public boolean accept(Object value)
This method determines if the given value should be accepted.

Specified by:
accept in interface Filter<Object>
Parameters:
value - is the value to check.
Returns:
true if the given value is acceptable, false if it should be filtered.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.