0.10.8-alpha
ca.uqac.lif.cep.util.Bags Class Reference

A container object for functions and processors applying to generic collections, i.e. More...

Classes

class  AnyElement
 Returns any element of a collection. More...
 
class  ApplyToAll
 Given a set/list/array, returns a new set/list/array whose content is the result of applying a function to each element. More...
 
class  Contains
 Checks if an object is a member of a collection. More...
 
class  Explode
 A 1:m function provided by the Bags utility class. More...
 
class  FilterElements
 Gets all the elements of the collection that satisfy some condition. More...
 
class  GetSize
 Gets the size of a collection. More...
 
class  IsElement
 Checks if an element is a member of a collection. More...
 
class  MaximumValue
 Returns the element with the maximum value in a collection. More...
 
class  MinimumValue
 Returns the element with the maximum value in a collection. More...
 
class  Product
 Computes the Cartesian product of two collections. More...
 
class  RunOn
 Runs each element of a collection into a processor, and collect its output. More...
 
class  ToArray
 Converts a front of n events into an array of n objects. More...
 
class  ToCollection
 Converts a front of n input events into a collection of n objects. More...
 
class  ToList
 Converts a front of n events into a list of n objects. More...
 
class  ToSet
 Converts a front of n events into a set of n objects. More...
 

Static Public Member Functions

static Object [] toObjectArray (Object o)
 Converts an object into an array. More...
 

Static Public Attributes

static final Contains contains = new Contains()
 Checks if a collection contains another. More...
 
static final IsElement isElement = new IsElement()
 Checks if an element is contained in a collection. More...
 
static final GetSize getSize = new GetSize()
 Gets the size of a collection. More...
 
static final Product product = new Product()
 Computes the Cartesian product of two collections. More...
 
static final AnyElement anyElement = new AnyElement()
 Gets any element of a bag. More...
 
static final MaximumValue maxValue = new MaximumValue()
 Gets the maximum value of a collection. More...
 
static final MinimumValue minValue = new MinimumValue()
 Gets the minimum value of a collection. More...
 

Protected Member Functions

 Bags ()
 

Detailed Description

A container object for functions and processors applying to generic collections, i.e.

"bags" of objects.

Author
Sylvain Hallé
Since
0.7

Definition at line 46 of file Bags.java.

Constructor & Destructor Documentation

◆ Bags()

ca.uqac.lif.cep.util.Bags.Bags ( )
protected

Definition at line 48 of file Bags.java.

Member Function Documentation

◆ toObjectArray()

static Object [] ca.uqac.lif.cep.util.Bags.toObjectArray ( Object  o)
static

Converts an object into an array.

Parameters
oThe object
Returns
An array, or null if the object could not be converted into an array.

Definition at line 656 of file Bags.java.

Member Data Documentation

◆ anyElement

final AnyElement ca.uqac.lif.cep.util.Bags.anyElement = new AnyElement()
static

Gets any element of a bag.

Definition at line 76 of file Bags.java.

◆ contains

final Contains ca.uqac.lif.cep.util.Bags.contains = new Contains()
static

Checks if a collection contains another.

Definition at line 56 of file Bags.java.

◆ getSize

final GetSize ca.uqac.lif.cep.util.Bags.getSize = new GetSize()
static

Gets the size of a collection.

Definition at line 66 of file Bags.java.

◆ isElement

final IsElement ca.uqac.lif.cep.util.Bags.isElement = new IsElement()
static

Checks if an element is contained in a collection.

Definition at line 61 of file Bags.java.

◆ maxValue

final MaximumValue ca.uqac.lif.cep.util.Bags.maxValue = new MaximumValue()
static

Gets the maximum value of a collection.

Definition at line 81 of file Bags.java.

◆ minValue

final MinimumValue ca.uqac.lif.cep.util.Bags.minValue = new MinimumValue()
static

Gets the minimum value of a collection.

Definition at line 86 of file Bags.java.

◆ product

final Product ca.uqac.lif.cep.util.Bags.product = new Product()
static

Computes the Cartesian product of two collections.

Definition at line 71 of file Bags.java.


The documentation for this class was generated from the following file: