
public class OCollections extends Object
| Constructor and Description |
|---|
OCollections() |
| Modifier and Type | Method and Description |
|---|---|
static <T> int |
indexOf(List<T> list,
T object,
Comparator<T> comparator)
This method is used to find item in collection using passed in comparator.
|
static String |
toString(Iterable<?> iterable)
Create a string representation of all objects in the given Iterable.
|
public static <T> int indexOf(List<T> list, T object, Comparator<T> comparator)
T - Type of collection elements.list - List in which value should be found.object - Object to find.comparator - Comparator is sued for search.-1 otherwise.Copyright © 2009–2016 Orient Technologies. All rights reserved.