Index
All Classes and Interfaces|All Packages|Serialized Form
A
- add(K, V) - Method in class me.sbasalaev.collection.ListMultimap.Builder
-
Adds given entry to this builder.
- add(K, V) - Method in class me.sbasalaev.collection.Map.Builder
-
Adds entry to the map being built.
- add(K, V) - Method in interface me.sbasalaev.collection.MultimapMutator
-
Puts key-value pair in this multimap.
- add(K, V) - Method in class me.sbasalaev.collection.MutableMap
-
Associates the
valuewith thekeyin this map. - add(K, V) - Method in class me.sbasalaev.collection.SetMultimap.Builder
-
Adds given entry to this builder.
- add(Entry<K, V>) - Method in class me.sbasalaev.collection.ListMultimap.Builder
-
Adds given entry to this builder.
- add(Entry<K, V>) - Method in class me.sbasalaev.collection.Map.Builder
-
Adds entry to the map being built.
- add(Entry<K, V>) - Method in interface me.sbasalaev.collection.MultimapMutator
-
Puts key-value pair in this multimap.
- add(Entry<K, V>) - Method in class me.sbasalaev.collection.SetMultimap.Builder
-
Adds given entry to this builder.
- add(T) - Method in interface me.sbasalaev.collection.MutableCollection
-
Adds element to this collection.
- add(T) - Method in class me.sbasalaev.collection.MutableList
-
Adds new element to the end of this list.
- addAll(Collection<? extends T>) - Method in interface me.sbasalaev.collection.MutableCollection
-
Adds elements to this collection.
- addAll(Collection<? extends T>) - Method in class me.sbasalaev.collection.MutableList
-
Adds all elements from given collection to the end of this list.
- API - Class in me.sbasalaev
-
Useful utilities meant to be imported statically.
- append(List<? extends T>, T) - Static method in class me.sbasalaev.API
-
Returns list with given element appended to the end of given list.
- argument(boolean, String) - Static method in class me.sbasalaev.Require
-
Ensures
conditionistrue. - argument(boolean, Supplier<String>) - Static method in class me.sbasalaev.Require
-
Ensures
conditionistrue. - Assert - Class in me.sbasalaev
-
Assertions in code.
B
- binarySearch(ToIntFunction<T>) - Method in class me.sbasalaev.collection.List
-
Finds item using binary search assuming elements are in increasing order.
- build() - Static method in class me.sbasalaev.collection.ListMultimap
-
Builder of immutable list multimaps.
- build() - Static method in class me.sbasalaev.collection.Map
-
Builds map from given entries.
- build() - Static method in class me.sbasalaev.collection.SetMultimap
-
Builder of immutable list multimaps.
C
- chain(Iterator<? extends T>, Iterator<? extends T>) - Static method in class me.sbasalaev.collection.Iterators
-
Concatenates two iterators together.
- chain(Traversable<?>) - Method in interface me.sbasalaev.collection.Traversable
-
Traversable that iterates over elements of both traversables.
- chain(Traversable<? extends T>...) - Static method in class me.sbasalaev.API
-
Chains several traversables together.
- chainMap(Function<? super T, ? extends Traversable<R>>) - Method in interface me.sbasalaev.collection.Traversable
-
Applies
mappingto the elements and chains the resulting traversables together. - clear() - Method in interface me.sbasalaev.collection.MultimapMutator
-
Removes all entries from this multimap.
- clear() - Method in interface me.sbasalaev.collection.MutableCollection
-
Removes all elements from the collection.
- clear() - Method in interface me.sbasalaev.staque.Feed
-
Removes all elements from the feed.
- clone() - Method in class me.sbasalaev.collection.Collection
-
Returns a shallow copy of this collection.
- clone() - Method in class me.sbasalaev.collection.List
-
Returns shallow immutable copy of this list.
- clone() - Method in class me.sbasalaev.collection.ListMultimap
- clone() - Method in class me.sbasalaev.collection.Map
-
Returns shallow immutable copy of this map.
- clone() - Method in class me.sbasalaev.collection.Multimap
-
Returns a shallow copy of this multimap.
- clone() - Method in class me.sbasalaev.collection.Set
-
Returns shallow immutable copy of this set.
- clone() - Method in class me.sbasalaev.collection.SetMultimap
- clone() - Method in class me.sbasalaev.Opt
-
Returns this optional.
- Collection<T> - Class in me.sbasalaev.collection
-
Collection of elements.
- Collection() - Constructor for class me.sbasalaev.collection.Collection
-
Constructor for subclasses.
- collectionEntries() - Method in class me.sbasalaev.collection.Map
- collectionEntries() - Method in class me.sbasalaev.collection.Multimap
-
Associations between keys and collections of values in this multimap.
- concat(List<? extends T>...) - Static method in class me.sbasalaev.API
-
Concatenates several lists together.
- concatenated(List<? extends T>...) - Static method in class me.sbasalaev.collection.List
-
Concatenates several lists together.
- constant(R) - Static method in class me.sbasalaev.API
-
Constant function.
- contains(Object) - Method in class me.sbasalaev.collection.Set
-
Whether given element is in this set.
- containsEntry(Object, Object) - Method in class me.sbasalaev.collection.Multimap
-
Whether given key corresponds to given value in this map.
- containsEntry(Object, Object) - Method in class me.sbasalaev.collection.SetMultimap
- containsEntry(Entry<K, ?>) - Method in class me.sbasalaev.collection.Multimap
-
Whether given key corresponds to given value in this map.
- containsKey(Object) - Method in class me.sbasalaev.collection.Multimap
-
Whether given key is present in this map.
- copyOf(Map<K, V>) - Static method in class me.sbasalaev.collection.MutableMap
-
Returns new mutable map that initially contains given values.
- count() - Method in class me.sbasalaev.collection.Collection
-
Number of elements in this collection.
- count() - Method in interface me.sbasalaev.collection.Traversable
-
Counts number of elements in this collection.
- count(Predicate<? super T>) - Method in interface me.sbasalaev.collection.Traversable
-
Counts number of elements that satisfy given
condition. - counting(int) - Static method in class me.sbasalaev.collection.Iterators
-
Infinite iterator counting integers starting from given one.
- createIfMissing(K, Supplier<? extends V>) - Method in class me.sbasalaev.collection.MutableMap
-
Returns value associated with given key, adds it if no value was associated.
- createOrUpdate(K, Supplier<? extends V>, UnaryOperator<V>) - Method in class me.sbasalaev.collection.MutableMap
-
Creates or updates association with given key in this map.
D
- Deque<T> - Interface in me.sbasalaev.staque
-
Double-edged queue.
E
- element() - Method in record class me.sbasalaev.collection.IndexedElement
-
Returns the value of the
elementrecord component. - empty() - Static method in class me.sbasalaev.collection.Iterators
-
Empty iterator.
- empty() - Static method in class me.sbasalaev.collection.List
-
Empty list.
- empty() - Static method in class me.sbasalaev.collection.ListMultimap
-
Empty list multimap.
- empty() - Static method in class me.sbasalaev.collection.Map
-
Map with no entries.
- empty() - Static method in class me.sbasalaev.collection.MutableList
-
New mutable list that is initially empty.
- empty() - Static method in class me.sbasalaev.collection.MutableListMultimap
-
Returns new mutable multimap that is initially empty.
- empty() - Static method in class me.sbasalaev.collection.MutableMap
-
Returns new mutable map that is initially empty.
- empty() - Static method in class me.sbasalaev.collection.MutableSet
-
Returns new mutable set that is initially empty.
- empty() - Static method in class me.sbasalaev.collection.MutableSetMultimap
-
Returns new mutable multimap that is initially empty.
- empty() - Static method in class me.sbasalaev.collection.Set
-
Empty set.
- empty() - Static method in class me.sbasalaev.collection.SetMultimap
-
Empty list multimap.
- empty() - Static method in class me.sbasalaev.Opt
-
Empty optional.
- empty() - Static method in interface me.sbasalaev.staque.Deque
-
Returns new deque that is initially empty.
- empty() - Static method in interface me.sbasalaev.staque.Queue
-
Returns new queue that is initially empty.
- empty() - Static method in interface me.sbasalaev.staque.Stack
-
Returns new stack that is initially empty.
- enqueue(T) - Method in interface me.sbasalaev.staque.Queue
-
Places
itemat the bottom of the queue. - entries() - Method in class me.sbasalaev.collection.ListMultimap
- entries() - Method in class me.sbasalaev.collection.Map
-
The set of key-value associations in this map.
- entries() - Method in class me.sbasalaev.collection.Multimap
-
All key-value associations of this multimap.
- entries() - Method in class me.sbasalaev.collection.SetMultimap
- Entry<K,
V> - Class in me.sbasalaev.collection -
Map entry.
- Entry() - Constructor for class me.sbasalaev.collection.Entry
-
Constructor for subclasses.
- equals(Object) - Method in class me.sbasalaev.collection.Collection
-
Whether given object is equal to this collection.
- equals(Object) - Method in class me.sbasalaev.collection.Entry
-
Whether given object is equal to this entry.
- equals(Object) - Method in class me.sbasalaev.collection.List
-
Compares two objects for equality.
- equals(Object) - Method in class me.sbasalaev.collection.ListMultimap
- equals(Object) - Method in class me.sbasalaev.collection.Map
-
Whether some object is equal to this map.
- equals(Object) - Method in class me.sbasalaev.collection.Multimap
-
Whether given object is equal to this multimap.
- equals(Object) - Method in class me.sbasalaev.collection.Set
-
Whether given object is equal to this set.
- equals(Object) - Method in class me.sbasalaev.collection.SetMultimap
- equals(Object) - Method in class me.sbasalaev.Opt
-
Whether given object is equal to this optional.
- equals(Object) - Method in record class me.sbasalaev.collection.IndexedElement
-
Indicates whether some other object is "equal to" this one.
- exists(Predicate<? super T>) - Method in interface me.sbasalaev.collection.Traversable
-
Tests whether any element in this traversable matches given
condition.
F
- Feed<T> - Interface in me.sbasalaev.staque
-
Common superinterface for stack and queue.
- fillArray(Object[], int) - Method in class me.sbasalaev.collection.Collection
-
Fills array with elements of this collection starting from given index in array.
- filter(Predicate<? super T>) - Method in interface me.sbasalaev.collection.Traversable
-
Returns traversable that only traverses elements satisfying given
condition. - filter(Iterator<T>, Predicate<? super T>) - Static method in class me.sbasalaev.collection.Iterators
-
Filters out iterator elements that do not satisfy
condition. - filtered(Predicate<? super T>) - Method in class me.sbasalaev.collection.Collection
-
Returns collection of the same type containing only elements matching given condition.
- filtered(Predicate<? super T>) - Method in class me.sbasalaev.collection.List
-
Returns new list that contains only elements of this list satisfying given condition.
- filtered(Predicate<? super T>) - Method in class me.sbasalaev.collection.Set
-
Returns set that contains only elements of this set satisfying given condition.
- filtered(Predicate<? super T>) - Method in class me.sbasalaev.Opt
-
Returns this optional if its value matches given condition, empty optional otherwise.
- find(Predicate<? super T>) - Method in interface me.sbasalaev.collection.Traversable
-
Returns element that satisfies
conditionor empty optional if there is no such element. - findIndex(Predicate<? super T>) - Method in class me.sbasalaev.collection.List
-
The index of the first element satisfying given condition.
- findIndex(Predicate<? super T>, int) - Method in class me.sbasalaev.collection.List
-
The index of the first element satisfying given condition.
- findLastIndex(Predicate<? super T>) - Method in class me.sbasalaev.collection.List
-
The index of the last element satisfying given condition.
- first() - Method in class me.sbasalaev.collection.List
-
The first element of this list.
- first() - Method in interface me.sbasalaev.collection.Traversable
-
Returns the first element produced by the iterator of this traversable.
- fold(R, BiFunction<? super R, ? super T, ? extends R>) - Method in interface me.sbasalaev.collection.Traversable
-
Starting from the
first, appliescombineto elements of the collection returning result. - fold(R, BiFunction<? super R, ? super T, ? extends R>) - Method in class me.sbasalaev.Opt
- forall(Predicate<? super T>) - Method in interface me.sbasalaev.collection.Traversable
-
Tests whether all elements in this traversable match given
condition. - forEachEntry(BiConsumer<K, V>) - Method in class me.sbasalaev.collection.Map
-
Performs given action for each entry in this map.
- forEachIndexed(ObjIntConsumer<? super T>) - Method in class me.sbasalaev.collection.List
-
Performs given action for each element of this list.
- forEachPair(BiConsumer<? super T, ? super T>) - Method in class me.sbasalaev.collection.List
-
Performs given action for all pairs of elements in this list.
- from(int) - Method in class me.sbasalaev.collection.List
-
A view of this list that contains only elements starting from given offset.
- fromJava(List<T>) - Static method in class me.sbasalaev.collection.List
-
List view of given Java list.
- fromJava(Map<K, V>) - Static method in class me.sbasalaev.collection.Map
-
Map view of given java map.
- fromJava(Optional<T>) - Static method in class me.sbasalaev.Opt
-
Converts Java optional to Opt.
- fromJava(Set<T>) - Static method in class me.sbasalaev.collection.Set
-
Set view of given java set.
G
- get() - Method in class me.sbasalaev.Lazy
-
Evaluates and returns the value.
- get(int) - Method in class me.sbasalaev.collection.List
-
Element at the specified index of the list.
- get(Object) - Method in class me.sbasalaev.collection.ListMultimap
-
Values associated with given key in this multimap.
- get(Object) - Method in class me.sbasalaev.collection.Map
-
Value associated with given key or empty optional if there is none.
- get(Object) - Method in class me.sbasalaev.collection.Multimap
-
Collection of values associated with given key in this multimap.
- get(Object) - Method in class me.sbasalaev.collection.SetMultimap
-
Set of values associated with given key in this multimap.
- groupedBy(Function<? super T, ? extends K>) - Method in interface me.sbasalaev.collection.Traversable
-
Deprecated.
- groupedIntoLists(Function<? super T, ? extends K>) - Method in interface me.sbasalaev.collection.Traversable
-
Collects elements of this traversable into sets grouped by given classifier.
- groupedIntoSets(Function<? super T, ? extends K>) - Method in interface me.sbasalaev.collection.Traversable
-
Collects elements of this traversable into sets grouped by given classifier.
H
- hashCode() - Method in class me.sbasalaev.collection.Collection
-
Hash code of the collection.
- hashCode() - Method in class me.sbasalaev.collection.Entry
-
The hash code for this entry.
- hashCode() - Method in record class me.sbasalaev.collection.IndexedElement
-
Returns a hash code value for this object.
- hashCode() - Method in class me.sbasalaev.collection.List
-
Returns hash code for the list.
- hashCode() - Method in class me.sbasalaev.collection.Multimap
-
Hash code of the multimap.
- hashCode() - Method in class me.sbasalaev.collection.Set
-
Hash code of the set.
- hashCode() - Method in class me.sbasalaev.Opt
-
Hashcode of the value or 0 for empty optional.
I
- In - Annotation Interface in me.sbasalaev.annotation
-
Annotates contravariant type parameters.
- index() - Method in record class me.sbasalaev.collection.IndexedElement
-
Returns the value of the
indexrecord component. - indexed() - Method in class me.sbasalaev.collection.List
-
A view of this list where each element is coupled with the corresponding index.
- IndexedElement<T> - Record Class in me.sbasalaev.collection
-
List element with its corresponding index.
- IndexedElement(int, T) - Constructor for record class me.sbasalaev.collection.IndexedElement
-
Creates an instance of a
IndexedElementrecord class. - indexedTransform(BiFunction<Integer, T, T>) - Method in class me.sbasalaev.collection.MutableList
-
Transforms elements of this list using given transformation.
- insert(int, T) - Method in class me.sbasalaev.collection.MutableList
-
Inserts element at the specified index of the list.
- insertAll(int, Collection<? extends T>) - Method in class me.sbasalaev.collection.MutableList
-
Inserts elements at the specified position of the list.
- intersect(Set<?>) - Method in class me.sbasalaev.collection.Set
-
Set containing only elements of this set that are also in another set.
- intersects(Set<?>) - Method in class me.sbasalaev.collection.Set
-
Whether any element of this set is also in the given set.
- Is - Annotation Interface in me.sbasalaev.annotation
-
Deprecated, for removal: This API element is subject to removal in a future version.Java 17 has sealed classes and pattern switch which makes this annotation obsolete.
- isEmpty() - Method in class me.sbasalaev.collection.Collection
- isEmpty() - Method in class me.sbasalaev.collection.Multimap
-
Whether this multimap has no entries.
- isEmpty() - Method in interface me.sbasalaev.collection.Traversable
-
Whether this collection has no elements.
- isEmpty() - Method in interface me.sbasalaev.staque.Feed
-
Returns true if the feed is empty.
- isEvaluated() - Method in class me.sbasalaev.Lazy
-
True iff value is already evaluated.
- isSubset(Set<?>) - Method in class me.sbasalaev.collection.Set
-
Whether all elements of this set are also in the given set.
- isSuperset(Set<?>) - Method in class me.sbasalaev.collection.Set
-
Whether all elements of given set are also in this set.
- iterator() - Method in class me.sbasalaev.collection.List
-
Iterator of this list.
- iterator() - Method in class me.sbasalaev.Opt
- iterator() - Method in interface me.sbasalaev.staque.Feed
-
State changing iterator of this feed.
- Iterators - Class in me.sbasalaev.collection
-
Factory methods for iterators.
J
- join(String) - Method in interface me.sbasalaev.collection.Traversable
-
Joins elements of the traversable into a string.
- join(String, String, String) - Method in interface me.sbasalaev.collection.Traversable
-
Joins elements of the traversable into a string.
K
- key() - Method in class me.sbasalaev.collection.Entry
-
The key of this entry.
- keyHash() - Method in class me.sbasalaev.collection.Entry
-
Returns the hash code of the key.
- keys() - Method in class me.sbasalaev.collection.Map
-
The set of keys that have an associated value in this map.
- keys() - Method in class me.sbasalaev.collection.Multimap
-
Set of keys that have at least one associated value in this multimap.
- keySize() - Method in class me.sbasalaev.collection.Map
-
Number of keys in this map.
- keySize() - Method in class me.sbasalaev.collection.Multimap
-
Number of keys in this multimap that have at least one associated value.
L
- last() - Method in class me.sbasalaev.collection.List
-
The last element of this list.
- lastIndex() - Method in class me.sbasalaev.collection.List
-
The last valid index in this list.
- Lazy<T> - Class in me.sbasalaev
-
Lazily evaluated value.
- Lazy(Supplier<T>) - Constructor for class me.sbasalaev.Lazy
-
Creates new instance that lazily evaluates the value from the
supplier. - Lazy(T) - Constructor for class me.sbasalaev.Lazy
-
Creates new instance with the
valuethat is already evaluated. - limit(Iterator<T>, int) - Static method in class me.sbasalaev.collection.Iterators
-
Limits number of elements produced by
iteratorbycap. - list() - Static method in class me.sbasalaev.API
-
Empty list.
- list(T...) - Static method in class me.sbasalaev.API
-
List of given elements.
- List<T> - Class in me.sbasalaev.collection
-
Sequence of elements numbered by integer indices.
- List() - Constructor for class me.sbasalaev.collection.List
-
Constructor for subclasses.
- ListMultimap<K,
V> - Class in me.sbasalaev.collection -
Mapping of keys to lists of values.
- ListMultimap() - Constructor for class me.sbasalaev.collection.ListMultimap
-
Constructor for subclasses.
- ListMultimap.Builder<K,
V> - Class in me.sbasalaev.collection -
Builder of immutable list multimaps.
M
- map(Function<? super T, ? extends R>) - Method in class me.sbasalaev.collection.List
-
Returns view of this list with given mapping applied to all elements.
- map(Function<? super T, ? extends R>) - Method in interface me.sbasalaev.collection.Traversable
-
Returns traversable with given
mappingapplied to all elements. - map(Iterator<T>, Function<? super T, ? extends R>) - Static method in class me.sbasalaev.collection.Iterators
-
Applies
mappingto all elements ofiterator. - Map<K,
V> - Class in me.sbasalaev.collection -
Mapping of keys to values.
- Map() - Constructor for class me.sbasalaev.collection.Map
-
Constructor for subclasses.
- Map.Builder<K,
V> - Class in me.sbasalaev.collection -
Builder of immutable maps.
- mapped(Function<? super T, ? extends R>) - Method in class me.sbasalaev.collection.Collection
-
Returns collection of the same type with given mapping applied to all elements.
- mapped(Function<? super T, ? extends R>) - Method in class me.sbasalaev.collection.List
-
Returns new list with given mapping applied to all elements.
- mapped(Function<? super T, ? extends R>) - Method in class me.sbasalaev.collection.Set
-
Returns set with given mapping applied to all elements of this set.
- mapped(Function<? super T, ? extends R>) - Method in class me.sbasalaev.Opt
-
Maps value in this optional using given mapping.
- mapValues(Function<? super V, ? extends W>) - Method in class me.sbasalaev.collection.Map
-
View of this map with given mapping applied to values.
- match(Function<T, R>, Supplier<R>) - Method in class me.sbasalaev.Opt
-
Either maps the value or produces one if the optional is empty.
- matchDo(Consumer<T>, Runnable) - Method in class me.sbasalaev.Opt
-
Either runs
actionon the value oremptyActionif the optional is empty. - maybe(T) - Static method in class me.sbasalaev.API
-
Wraps value into optional.
- me.sbasalaev - package me.sbasalaev
-
Useful utilities that I use throughout my projects.
- me.sbasalaev.annotation - package me.sbasalaev.annotation
-
Annotations for stricter code checking and code generation.
- me.sbasalaev.collection - package me.sbasalaev.collection
-
Collection framework.
- me.sbasalaev.common - module me.sbasalaev.common
-
Common goodies that I use across my projects.
- me.sbasalaev.staque - package me.sbasalaev.staque
-
Stacks and queues with minimal interface.
- Multimap<K,
V, - Class in me.sbasalaev.collectionC> -
Common superclass for maps and multimaps.
- Multimap() - Constructor for class me.sbasalaev.collection.Multimap
-
Constructor for subclasses.
- MultimapMutator<K,
V, - Interface in me.sbasalaev.collectionC> -
Common mutating methods for all mutable multimaps.
- MutableCollection<T> - Interface in me.sbasalaev.collection
-
Common methods of
MutableListandMutableSet. - MutableList<T> - Class in me.sbasalaev.collection
-
List that can be mutated.
- MutableListMultimap<K,
V> - Class in me.sbasalaev.collection -
Mutable mapping of keys to lists of values.
- MutableListMultimap() - Constructor for class me.sbasalaev.collection.MutableListMultimap
-
Constructor for subclasses.
- MutableMap<K,
V> - Class in me.sbasalaev.collection -
Map that can be mutated.
- MutableMap() - Constructor for class me.sbasalaev.collection.MutableMap
-
Constructor for subclasses.
- MutableSet<T> - Class in me.sbasalaev.collection
-
Set that can be mutated.
- MutableSet() - Constructor for class me.sbasalaev.collection.MutableSet
-
Constructor for subclasses.
- MutableSetMultimap<K,
V> - Class in me.sbasalaev.collection -
Mutable mapping of keys to sets of values.
- MutableSetMultimap() - Constructor for class me.sbasalaev.collection.MutableSetMultimap
-
Constructor for subclasses.
N
- narrow(Class<U>) - Method in interface me.sbasalaev.collection.Traversable
-
Returns traversable that only traverses subclasses of
clazz. - narrow(Class<U>) - Method in class me.sbasalaev.Opt
-
Returns this optional if its value is of given class, empty optional otherwise.
- none() - Static method in class me.sbasalaev.API
-
Empty optional.
- nonEmpty() - Method in class me.sbasalaev.collection.Collection
- nonEmpty() - Method in class me.sbasalaev.collection.Multimap
-
Whether this multimap has at least one entry.
- nonEmpty() - Method in interface me.sbasalaev.collection.Traversable
-
Whether this collection contains elements.
- nonEmpty() - Method in interface me.sbasalaev.staque.Feed
-
Returns true if the feed is non-empty.
- nonNegative(int, String) - Static method in class me.sbasalaev.Require
-
Checks that the
valueis non-negative and returns it. - nonNegative(long, String) - Static method in class me.sbasalaev.Require
-
Checks that the
valueis non-negative and returns it. - nonNull(T) - Static method in class me.sbasalaev.Assert
-
Asserts given
valueis notnull. - nonNull(T, String) - Static method in class me.sbasalaev.Require
-
Checks that the
valueis notnull. - noNulls(T[]) - Static method in class me.sbasalaev.Require
-
Checks that the
arrayis notnulland contains nonullelements. - noNulls(T[], String) - Static method in class me.sbasalaev.Require
-
Checks that the
arrayis notnulland contains nonullelements. - not(boolean) - Static method in class me.sbasalaev.Assert
-
Asserts given
expressionis false. - NotImplementedError - Exception Class in me.sbasalaev
-
Thrown by the code that is yet to be implemented.
- NotImplementedError() - Constructor for exception class me.sbasalaev.NotImplementedError
- NotImplementedError(String) - Constructor for exception class me.sbasalaev.NotImplementedError
- Nullability - Search tag in module me.sbasalaev.common
- Section
- Nullable - Annotation Interface in me.sbasalaev.annotation
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
Nullableinstead.
O
- of(int, T) - Static method in record class me.sbasalaev.collection.IndexedElement
-
Creates an instance of indexed element.
- of(K, V) - Static method in class me.sbasalaev.collection.Entry
-
Returns map entry with given key and value.
- of(K, V) - Static method in class me.sbasalaev.collection.Map
-
Map containing given entry.
- of(K, V, K, V) - Static method in class me.sbasalaev.collection.Map
-
Map containing given entries.
- of(K, V, K, V, K, V) - Static method in class me.sbasalaev.collection.Map
-
Map containing given entries.
- of(K, V, K, V, K, V, K, V) - Static method in class me.sbasalaev.collection.Map
-
Map containing given entries.
- of(K, V, K, V, K, V, K, V, K, V) - Static method in class me.sbasalaev.collection.Map
-
Map containing given entries.
- of(K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class me.sbasalaev.collection.Map
-
Map containing given entries.
- of(Collection<? extends T>) - Static method in class me.sbasalaev.collection.MutableList
-
New mutable list that initially contains given elements.
- of(Collection<? extends T>) - Static method in class me.sbasalaev.collection.MutableSet
-
Returns new mutable set that initially contains given elements.
- of(T) - Static method in class me.sbasalaev.Opt
-
Non-empty optional.
- of(T...) - Static method in class me.sbasalaev.collection.Iterators
-
Iterator over given elements in given order.
- of(T...) - Static method in class me.sbasalaev.collection.List
-
List of given elements.
- of(T...) - Static method in class me.sbasalaev.collection.MutableList
-
New mutable list that initially contains given elements.
- of(T...) - Static method in class me.sbasalaev.collection.MutableSet
-
Returns new mutable set that initially contains given elements.
- of(T...) - Static method in class me.sbasalaev.collection.Set
-
Set containing given elements.
- ofNullable(T) - Static method in class me.sbasalaev.Opt
-
Optional of non-null value, empty optional for null.
- ofRange(T[], int, int) - Static method in class me.sbasalaev.collection.Iterators
-
Iterator over range of given array.
- Opt<T> - Class in me.sbasalaev
-
Optional value.
- orElse(T) - Method in class me.sbasalaev.Opt
-
Returns value in this optional or
defaultValueif the optional is empty. - orElseGet(Supplier<? extends T>) - Method in class me.sbasalaev.Opt
-
Returns value in this optional or the value from
valueSupplierif the optional is empty. - orElseNull() - Method in class me.sbasalaev.Opt
-
Returns value in this optional or
nullif the optional is empty. - orElseThrow(String) - Method in class me.sbasalaev.Opt
-
Returns value in this optional or throws
NoSuchElementExceptionwith givenmessage. - orElseThrow(Supplier<X>) - Method in class me.sbasalaev.Opt
-
Returns value in this optional or throws the exception from given supplier.
- Out - Annotation Interface in me.sbasalaev.annotation
-
Annotates covariant type parameters.
P
- pairs(BiFunction<? super T, ? super T, ? extends R>) - Method in class me.sbasalaev.collection.List
-
Traverses all pairs of elements in this list.
- peek() - Method in interface me.sbasalaev.staque.Feed
-
Returns top element from the feed without removing it.
- positive(int, String) - Static method in class me.sbasalaev.Require
-
Checks that the
valueis positive and returns it. - positive(long, String) - Static method in class me.sbasalaev.Require
-
Checks that the
valueis positive and returns it. - push(T) - Method in interface me.sbasalaev.staque.Stack
-
Pushes
itemto the top of the stack.
Q
- Queue<T> - Interface in me.sbasalaev.staque
-
First-in-first-out element feed.
R
- remove(T) - Method in interface me.sbasalaev.collection.MutableCollection
-
Removes one occurence of given item from the collection.
- removeAllKeysMatching(Predicate<? super K>) - Method in class me.sbasalaev.collection.MutableMap
-
Removes all elements matching given condition from the collection.
- removeAllMatching(Predicate<? super T>) - Method in interface me.sbasalaev.collection.MutableCollection
-
Removes all elements matching given condition from the collection.
- removeAt(int) - Method in class me.sbasalaev.collection.MutableList
-
Removes element at given index.
- removeEntry(K, V) - Method in interface me.sbasalaev.collection.MultimapMutator
-
Removes a single entry from this multimap.
- removeKey(K) - Method in interface me.sbasalaev.collection.MultimapMutator
-
Removes the key and all associated values from this multimap.
- removeKey(K) - Method in class me.sbasalaev.collection.MutableMap
-
Removes key and associated value from this map.
- removeRange(int, int) - Method in class me.sbasalaev.collection.MutableList
-
Removes all elements in given range of this list.
- repeat(T, int) - Static method in class me.sbasalaev.collection.List
-
List that repeats the same element given number of times.
- Require - Class in me.sbasalaev
-
Precondition checks.
- retainAllKeysMatching(Predicate<? super K>) - Method in class me.sbasalaev.collection.MutableMap
-
Retains only entries with key matching given condition.
- retainAllMatching(Predicate<? super T>) - Method in interface me.sbasalaev.collection.MutableCollection
-
Retains only elements matching given condition in the collection.
- reversed() - Method in class me.sbasalaev.collection.List
-
A view of this list that contains the same elements in the reversed order.
S
- set() - Static method in class me.sbasalaev.API
-
Empty set.
- set(int, T) - Method in class me.sbasalaev.collection.MutableList
-
Assigns new element to the given index.
- set(K, V) - Method in class me.sbasalaev.collection.MutableMap
-
Associates the
valuewith thekeyin this map. - set(T...) - Static method in class me.sbasalaev.API
-
Set of given elements.
- Set<T> - Class in me.sbasalaev.collection
-
A collection of distinct elements.
- Set() - Constructor for class me.sbasalaev.collection.Set
-
Constructor for subclasses.
- SetMultimap<K,
V> - Class in me.sbasalaev.collection - SetMultimap() - Constructor for class me.sbasalaev.collection.SetMultimap
-
Constructor for subclasses.
- SetMultimap.Builder<K,
V> - Class in me.sbasalaev.collection -
Builder of immutable list multimaps.
- size() - Method in class me.sbasalaev.collection.Collection
-
Number of elements in this collection.
- size() - Method in class me.sbasalaev.collection.Multimap
-
Number of key-value pairs in this multimap.
- size() - Method in class me.sbasalaev.Opt
- some(T) - Static method in class me.sbasalaev.API
-
Non-empty optional.
- sortBy(Comparator<? super T>) - Method in class me.sbasalaev.collection.MutableList
-
Sorts this list using given comparator.
- sortedBy(Comparator<? super T>) - Method in interface me.sbasalaev.collection.Traversable
-
Returns list of elements of this traversable sorted by given comparator.
- spliterator() - Method in class me.sbasalaev.collection.Collection
-
Creates a
Spliteratorover elements of this collection. - spliterator() - Method in class me.sbasalaev.collection.List
-
Creates a
Spliteratorover elements of this list. - spliterator() - Method in class me.sbasalaev.collection.Set
- spliterator() - Method in class me.sbasalaev.Opt
- Stack<T> - Interface in me.sbasalaev.staque
-
Last-in-first-out element feed.
- state(boolean, String) - Static method in class me.sbasalaev.Require
-
Ensures
conditionistrue. - state(boolean, Supplier<String>) - Static method in class me.sbasalaev.Require
-
Ensures
conditionistrue. - stream() - Method in class me.sbasalaev.collection.Collection
-
Returns a sequential
Streamwith this collection as its source. - stream() - Method in class me.sbasalaev.Opt
- sum(Traversable<Integer>) - Static method in class me.sbasalaev.API
-
Returns sum of all numbers in a given traversable.
T
- take() - Method in interface me.sbasalaev.staque.Feed
-
Removes top element from the feed and returns it.
- take(int) - Method in class me.sbasalaev.collection.List
-
A view of this list that contains no more than
limitelements. - take(int) - Method in interface me.sbasalaev.collection.Traversable
-
Traverses no more than
limitelements of this traversable. - takeWhile(Predicate<? super T>) - Method in interface me.sbasalaev.collection.Traversable
-
Iterates through elements of this traversable until given condition fails.
- takeWhile(Iterator<T>, Predicate<? super T>) - Static method in class me.sbasalaev.collection.Iterators
-
Takes values from
iteratoruntil givenconditionfails. - that(boolean) - Static method in class me.sbasalaev.Assert
-
Asserts given
expressionis true. - toArray() - Method in class me.sbasalaev.collection.Collection
-
Allocates and returns array with the elements of this collection.
- toArray(IntFunction<T[]>) - Method in class me.sbasalaev.collection.Collection
-
Allocates and returns array with the elements of this collection.
- TODO() - Static method in class me.sbasalaev.API
-
Throws NotImplementedError when evaluated.
- TODO(String) - Static method in class me.sbasalaev.API
-
Throws NotImplementedError when evaluated.
- toJava() - Method in class me.sbasalaev.collection.List
-
A view of this list as Java list.
- toJava() - Method in class me.sbasalaev.collection.Map
-
View of this map as java map.
- toJava() - Method in class me.sbasalaev.collection.Set
-
Returns view of this set as Java set.
- toJava() - Method in class me.sbasalaev.Opt
-
Converts this value to Java optional.
- toList() - Method in class me.sbasalaev.collection.Collection
- toList() - Method in interface me.sbasalaev.collection.Traversable
-
Collects elements of this traversable into an immutable list.
- toListMultimap() - Method in class me.sbasalaev.collection.ListMultimap.Builder
-
Creates new immutable multimap with entries added to this builder.
- toMap() - Method in class me.sbasalaev.collection.Map.Builder
-
Creates new immutable map with entries added to this builder.
- toSet() - Method in class me.sbasalaev.collection.Collection
- toSet() - Method in interface me.sbasalaev.collection.Traversable
-
Collects elements of this traversable into an immutable set.
- toSetMultimap() - Method in class me.sbasalaev.collection.SetMultimap.Builder
-
Creates new immutable multimap with entries added to this builder.
- toString() - Method in class me.sbasalaev.collection.Collection
-
String representation of this collection.
- toString() - Method in class me.sbasalaev.collection.Entry
-
String representation of this entry.
- toString() - Method in record class me.sbasalaev.collection.IndexedElement
-
Returns a string representation of this record class.
- toString() - Method in class me.sbasalaev.collection.Multimap
-
String representation of this map.
- toString() - Method in class me.sbasalaev.Lazy
- transform(UnaryOperator<T>) - Method in class me.sbasalaev.collection.MutableList
-
Transforms elements of this list using given transformation.
- Traversable<T> - Interface in me.sbasalaev.collection
-
Collection of elements that may be traversed in sequence.
U
- union(Set<? extends T>...) - Static method in class me.sbasalaev.collection.Set
-
Set containing elements of all given sets.
- union(Traversable<? extends Set<? extends T>>) - Static method in class me.sbasalaev.collection.Set
-
Set containing elements of all given sets.
- unite(Set<?>) - Method in class me.sbasalaev.collection.Set
-
Set containing elements of both this and the other set.
- updateIfPresent(K, UnaryOperator<V>) - Method in class me.sbasalaev.collection.MutableMap
-
Updates association with given key if it is already present in this map.
V
- value() - Element in annotation interface me.sbasalaev.annotation.Is
-
Deprecated.List of case subclasses of the annotated class.
- value() - Method in class me.sbasalaev.collection.Entry
-
The value associated with the key in this entry.
- values() - Method in class me.sbasalaev.collection.Multimap
-
Traverses all the values of this multimap.
W
- without(Set<?>) - Method in class me.sbasalaev.collection.Set
-
Set containing only elements of this set that are not in another set.
- wrapped(Iterator<T>) - Static method in class me.sbasalaev.collection.Iterators
-
Wraps elements produced by given iterator into
Optvalues.
Z
- zip(List<U>, BiFunction<? super T, ? super U, ? extends R>) - Method in class me.sbasalaev.collection.List
-
A combined view of
thisandotherlists using given zipper. - zipBy(Iterator<T>, Iterator<U>, BiFunction<? super T, ? super U, ? extends R>) - Static method in class me.sbasalaev.collection.Iterators
-
Combines values produced by iterators using
combiner.
All Classes and Interfaces|All Packages|Serialized Form
Traversable.groupedIntoSets(java.util.function.Function)orTraversable.groupedIntoLists(java.util.function.Function)instead.