net.sf.saffron.ext
Class LocaleMin

java.lang.Object
  |
  +--net.sf.saffron.ext.LocaleMin
All Implemented Interfaces:
AggregationExtender

public class LocaleMin
extends Object
implements AggregationExtender

LocaleMin is an example of a custom aggregation. It evaluates the minimum of a set of values, according to a given locale.

Since:
10 February, 2002
Version:
$Id: //open/saffron/src/net/sf/saffron/ext/LocaleMin.java#2 $
Author:
jhyde

Field Summary
private  Collator collator
           
 
Fields inherited from interface net.sf.saffron.core.AggregationExtender
METHOD_AGGREGATE, METHOD_MERGE, METHOD_NEXT, METHOD_RESULT, METHOD_START
 
Constructor Summary
LocaleMin(Locale locale)
           
 
Method Summary
 String aggregate(String v)
           
private  String lesser(String s, String t)
           
 Object merge(String v, Object accumulator0, Object accumulator1)
           
 Object next(String v, Object accumulator)
           
 String result(String v, Object accumulator)
           
 Object start(String v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

collator

private Collator collator
Constructor Detail

LocaleMin

public LocaleMin(Locale locale)
Method Detail

aggregate

public String aggregate(String v)

merge

public Object merge(String v,
                    Object accumulator0,
                    Object accumulator1)

next

public Object next(String v,
                   Object accumulator)

result

public String result(String v,
                     Object accumulator)

start

public Object start(String v)

lesser

private final String lesser(String s,
                            String t)

SourceForge.net_Logo