List of all members.
Static Public Member Functions |
static String | concatListString (List<?> list) |
Static Package Functions |
static public< B, A >
LinkedList< A > | maplist (final List< B > list, final MapFct< B, A > map) |
static public< T extends
Object > boolean | areElementsUnique (List< T > lv) |
static public< T extends Object > T | getOneOf (Collection< T > lv) |
static public< T extends
Object > List< T > | intersect (List< T > a, List< T > b, List< T > c) |
Private Member Functions |
| ListUtil () |
Constructor & Destructor Documentation
metadone.util.ListUtil.ListUtil |
( |
| ) |
[private] |
Member Function Documentation
static public<T extends Object> boolean metadone.util.ListUtil.areElementsUnique |
( |
List< T > |
lv | ) |
[static, package] |
static String metadone.util.ListUtil.concatListString |
( |
List<?> |
list | ) |
[static] |
- Parameters:
-
a | list (list is not null and its elements are not null) |
- Returns:
- the concatenation of the elements as a String.
static public<T extends Object> T metadone.util.ListUtil.getOneOf |
( |
Collection< T > |
lv | ) |
[static, package] |
- Parameters:
-
- Returns:
- One random element of the
lv
list and null
if the list is empty or null
.
Referenced by metadone.client.actions.SelectAsRangeAction.actionPerformed(), metadone.client.grasyla2.GrasylaContext.activate(), metadone.metabusiness.impl.MetaProperty_impl< T >.addEnumeratedValue(), metadone.metabusiness.impl.ConcreteObject_impl.addPropertyGeneric(), metadone.client.grasyla2.visuallibrary.AnchorEngine.AnchorBuilder.build(), metadone.client.grasyla2.SelectorBestEquation.findEquationEmpty(), metadone.client.parsers.grasyla.AST_script.generate_update(), metadone.metabusiness.impl.MetaDef_impl.getBooleanValue(), metadone.metabusiness.impl.MetaRole_impl.getCardinality(), metadone.metabusiness.impl.MetaProperty_impl< T >.getCardinality(), metadone.metabusiness.syntax.grasyla.GrasylaView.getModel(), metadone.client.dialog.swing.genConcreteObject.Panel_one_range.getTheConcreteRole(), metadone.client.dialog.swing.genConcreteObject.Panel_one_domain.getTheConcreteRole(), metadone.metabusiness.syntax.grasyla.GrasylaView.getUser(), metadone.metabusiness.impl.Workspace_impl.init_metametamodel(), metadone.client.grasyla2.visuallibrary.widgets.NearGroup.removeWidget(), metadone.metabusiness.impl.MetaDef_impl.setBooleanValue(), and metadone.client.grasyla2.visuallibrary.VLEdgeEngine.updateAnchors().
static public<T extends Object> List<T> metadone.util.ListUtil.intersect |
( |
List< T > |
a, |
|
|
List< T > |
b, |
|
|
List< T > |
c |
|
) |
| [static, package] |
- Parameters:
-
<T> | |
a | |
b | |
c | List c is used to store the result. List c is supposed to be empty and initialized. If c is null, a new linkedlist is created. |
- Returns:
- The common elements of lists 'a' and 'b'. List 'c' is used as the result and is returned.
static public<B, A> LinkedList<A> metadone.util.ListUtil.maplist |
( |
final List< B > |
list, |
|
|
final MapFct< B, A > |
map |
|
) |
| [static, package] |
Converts a list into another list by mapping every element with the map function.
- Parameters:
-
- Returns:
The documentation for this class was generated from the following file: