nl.imsystems.atag.tags
Class ELFunctions

java.lang.Object
  extended by nl.imsystems.atag.tags.ELFunctions

public class ELFunctions
extends Object

Some array and collection functions exposed by ATag.

Author:
kayvan


Method Summary
static boolean contains(Collection c, Object element)
          Searches a Collection for presence of a given object.
static boolean contains(Object[] c, Object element)
          Searches an array for presence of a given object.
static boolean containsAll(Collection c, Collection elements)
          Searches a Collection for presence of a given collection.
static boolean containsAll(Collection c, Object[] elements)
          Searches a Collection for presence of a given array.
static boolean containsAll(Object[] c, Collection elements)
          Searches an array for presence of a given collection.
static boolean containsAll(Object[] c, Object[] elements)
          Searches an array for presence of a given array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

contains

public static boolean contains(Collection c,
                               Object element)
Searches a Collection for presence of a given object.

Parameters:
c - The collection to search
element - Element to search for
Returns:
true if the collection contains element

containsAll

public static boolean containsAll(Collection c,
                                  Collection elements)
Searches a Collection for presence of a given collection. of objects.

Parameters:
c - The collection to search
elements - Elements to search for
Returns:
true if the collection contains all elements

containsAll

public static boolean containsAll(Collection c,
                                  Object[] elements)
Searches a Collection for presence of a given array.

Parameters:
c - The collection to search
elements - Elements to search for
Returns:
true if the collection contains all elements

contains

public static boolean contains(Object[] c,
                               Object element)
Searches an array for presence of a given object.

Parameters:
c - The array to search
element - Element to search for
Returns:
true if the array contains element

containsAll

public static boolean containsAll(Object[] c,
                                  Object[] elements)
Searches an array for presence of a given array.

Parameters:
c - The array to search
elements - Elements to search for
Returns:
true if the array contains all elements

containsAll

public static boolean containsAll(Object[] c,
                                  Collection elements)
Searches an array for presence of a given collection.

Parameters:
c - The array to search
elements - Elements to search for
Returns:
true if the array contains all elements