|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orbital.util.Filters
public class Filters
Collection filtering implementations.
Implementing classes are usually stateless.
Predicate
,
Collection
Field Summary | |
---|---|
static Function |
all
Select * . |
static Function |
first
Filter for first element. |
static Function |
last
Filter for last element. |
Constructor Summary | |
---|---|
Filters()
|
Method Summary | |
---|---|
static Function |
ranged(int min,
int max)
Filtering range from min to max. |
static Function |
top(double number,
boolean percent)
Filter for the first number percent elements. |
static Function |
top(int number)
Filter for the first number elements. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Function all
*
.
Selects all data in the collection.
public static final Function first
public static final Function last
Constructor Detail |
---|
public Filters()
Method Detail |
---|
public static Function ranged(int min, int max)
public static Function top(int number)
top(double, boolean)
public static Function top(double number, boolean percent)
percent
- true to filter for the first number percent elements.
false to filter for the first number elements top(int)
.
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |