public class Collections extends Object
| Constructor and Description |
|---|
Collections() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
contains(Collection c,
Object compareTo,
Comparator comparator)
Returns true if the specified Collection has an object that matches
the argument object compareTo using the given Comparator.
|
static Set |
subset(Collection c,
Object compareTo,
Comparator comparator)
Returns a subset of the specified collection whose elements match a given object
using a specified Comparator.
|
public static Set subset(Collection c, Object compareTo, Comparator comparator)
c - Collection object from which a subset will be taken.compareTo - Object to which elements of the collection will be compared against.comparator - Comparator object determining how elements in the collection will
be compared to the compareTo object.public static Object contains(Collection c, Object compareTo, Comparator comparator)
c - Collection object from which a subset will be taken.compareTo - Object to which elements of the collection will be compared against.comparator - Comparator object determining how elements in the collection will
be compared to the compareTo object.Copyright © 2019 JULIE Lab, Germany. All rights reserved.