saffron.ext
Class LocaleMin

java.lang.Object
  |
  +--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/main/saffron/ext/LocaleMin.java#1 $
Author:
jhyde

Field Summary
private  Collator collator
           
 
Fields inherited from interface saffron.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

lesser

private final String lesser(String s,
                            String t)

aggregate

public String aggregate(String v)

start

public Object start(String v)

next

public Object next(String v,
                   Object accumulator)

merge

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

result

public String result(String v,
                     Object accumulator)

SourceForge.net_Logo