| Package | Description |
|---|---|
| org.osgl | |
| org.osgl.util |
| Modifier and Type | Class and Description |
|---|---|
static class |
Lang.Val<T> |
static class |
Lang.Var<T> |
| Modifier and Type | Method and Description |
|---|---|
C.Set<T> |
Lang.Var.onlyIn(Collection<? extends T> col) |
C.Set<T> |
Lang.Var.with(Collection<? extends T> col) |
C.Set<T> |
Lang.Var.with(T element) |
C.Set<T> |
Lang.Var.with(T element,
T... elements) |
C.Set<T> |
Lang.Var.withIn(Collection<? extends T> col) |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
C.ListOrSet<T> |
| Modifier and Type | Class and Description |
|---|---|
static class |
S.Val |
static class |
S.Var |
class |
SetBase<T> |
| Modifier and Type | Field and Description |
|---|---|
static C.Set |
C.EMPTY_SET |
| Modifier and Type | Method and Description |
|---|---|
C.Set<T> |
C.Set.accept(Lang.Visitor<? super T> visitor) |
C.Set<T> |
C.Set.each(Lang.Visitor<? super T> visitor) |
C.Set<T> |
SetBase.eager() |
C.Set<T> |
C.Set.eager() |
C.Set<Map.Entry<K,V>> |
C.Map.entrySet() |
C.Set<T> |
SetBase.filter(Lang.Function<? super T,Boolean> predicate) |
C.Set<T> |
C.Set.filter(Lang.Function<? super T,Boolean> predicate) |
C.Set<T> |
C.Set.forEach(Lang.Visitor<? super T> visitor) |
static <T> C.Set<T> |
C.intercectionOf(Collection<? extends T> col1,
Collection<? extends T> col2) |
static <T> C.Set<T> |
C.interceptionOf(Collection<? extends T> col1,
Collection<? extends T> col2,
Collection<? extends T> col3,
Collection<? extends T>... otherCols) |
C.Set<T> |
SetBase.lazy() |
C.Set<T> |
C.Set.lazy() |
static <T> C.Set<T> |
C.newSet()
Create an new empty set
|
static <T> C.Set<T> |
C.newSet(Collection<? extends T> col)
Create an new set with all elements contained in the collection specified
|
static <T> C.Set<T> |
C.newSet(T t1,
T... ta)
Create an mutable set contains specified elements
|
C.Set<T> |
SetBase.onlyIn(Collection<? extends T> col) |
C.Set<T> |
C.Set.onlyIn(Collection<? extends T> col)
Returns a set contains all elements in the
col collection specified but not in this set |
C.Set<T> |
SetBase.parallel() |
C.Set<T> |
C.Set.parallel() |
C.Set<T> |
SetBase.sequential() |
C.Set<T> |
C.Set.sequential() |
static <T> C.Set<T> |
C.set()
Deprecated.
|
static <T> C.Set<T> |
C.Set()
Create an empty immutable set
|
static <T> C.Set<T> |
C.set(Collection<? extends T> col)
Deprecated.
|
static <T> C.Set<T> |
C.Set(Collection<? extends T> col)
Create an immutable set of all elements contained in the collection specified
|
static <T> C.Set<T> |
C.set(Iterable<? extends T> itr)
Create an immutable set of all elements supplied by the iterable specified
|
static <T> C.Set<T> |
C.set(T element)
Create an immutable set of a single element
|
static <T> C.Set<T> |
C.set(T t1,
T... ta)
Create an immutable set contains specified elements
|
static <T> C.Set<T> |
C.setOf(T... ta)
Create an immutable set of an array of elements
|
C.Set<T> |
ListBuilder.toSet() |
static <T> C.Set<T> |
C.unionOf(Collection<? extends T> col1,
Collection<? extends T> col2) |
static <T> C.Set<T> |
C.unionOf(Collection<? extends T> col1,
Collection<? extends T> col2,
Collection<? extends T> col3,
Collection<? extends T>... otherCols) |
C.Set<T> |
SetBase.with(Collection<? extends T> col) |
C.Set<T> |
C.Set.with(Collection<? extends T> col)
Returns a set contains all elements in this set and all elements in the
col collection specified |
C.Set<T> |
SetBase.with(T element) |
C.Set<T> |
C.Set.with(T element)
Returns a set contains all elements in this set plus the element specified
|
C.Set<T> |
SetBase.with(T element,
T... elements) |
C.Set<T> |
C.Set.with(T element,
T... elements)
Returns a set contains all elements in this set plus all the elements specified in the parameter list
|
C.Set<T> |
SetBase.withIn(Collection<? extends T> col) |
C.Set<T> |
C.Set.withIn(Collection<? extends T> col)
Returns a set contains only elements in both
col collection specified and this set |
C.Set<T> |
SetBase.without(Collection<? super T> col) |
C.Set<T> |
C.Set.without(Collection<? super T> col)
Returns a set contains all elements in this set and not in the
col collection specified |
C.Set<T> |
SetBase.without(T element) |
C.Set<T> |
C.Set.without(T element)
Returns a set contains all elements in the set except the one specified
|
C.Set<T> |
SetBase.without(T element,
T... elements) |
C.Set<T> |
C.Set.without(T element,
T... elements)
Returns a set contains all elements in the set except the ones specified
|
C.Set<Lang.Binary<K,V>> |
C.Map.zip() |
Copyright © 2014–2019 OSGL (Open Source General Library). All rights reserved.