public class Sample<T> extends Object
| Constructor and Description |
|---|
Sample(Set<T> positives,
Set<T> negatives) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(Collection<? extends T> positives,
Collection<? extends T> negatives) |
void |
addAll(Sample<T> other) |
void |
clear() |
static <T> Sample<T> |
create() |
static <T> Sample<T> |
create(Sample<T> other) |
static <T> Sample<T> |
create(Set<T> positives,
Set<T> negatives) |
static <T> Sample<T> |
createCopy(Collection<T> positives,
Collection<T> negatives) |
static <T> Sample<T> |
createCopy(Sample<T> other) |
Set<T> |
getNegatives() |
Set<T> |
getPositives() |
boolean |
isEmpty() |
String |
toString() |
public static <T> Sample<T> create()
public static <T> Sample<T> createCopy(Collection<T> positives, Collection<T> negatives)
public void addAll(Collection<? extends T> positives, Collection<? extends T> negatives)
public void clear()
public boolean isEmpty()
Copyright © 2015. All rights reserved.