Index
All Classes and Interfaces|All Packages|Serialized Form
A
- AFTER - Enum constant in enum class io.github.astrapi69.comparator.CompareOrder
-
The order to sort an object after.
- ASCENDING - Enum constant in enum class io.github.astrapi69.comparator.SortOrder
-
The ascending sort order
B
- BEFORE - Enum constant in enum class io.github.astrapi69.comparator.CompareOrder
-
The order to sort an object before.
- build() - Method in class io.github.astrapi69.comparator.NullCheckComparator.NullCheckComparatorBuilder
-
Build method to create a new
NullCheckComparatorobject - builder() - Static method in class io.github.astrapi69.comparator.NullCheckComparator
-
Factory method to create a new
NullCheckComparator.NullCheckComparatorBuilderobject
C
- ChainableComparator<T> - Class in io.github.astrapi69.comparator
-
The class
ChainableComparatorextends theComparatorChainand provides factory methods for createChainableComparatorobjects. - ComparatorExtensions - Class in io.github.astrapi69.comparator
-
The class
ComparatorExtensionshave helper methods for comparators. - ComparatorFactory - Class in io.github.astrapi69.comparator.factory
-
A factory for creating custom
Comparatorobjects - compare(String, String) - Method in class io.github.astrapi69.comparator.object.StringLengthComparator
- compare(Date, Date) - Method in class io.github.astrapi69.comparator.object.DateComparator
- compare(Date, Date) - Method in class io.github.astrapi69.comparator.object.DescendingDateComparator
- compare(Locale, Locale) - Method in class io.github.astrapi69.comparator.object.LocaleComparator
- compare(T, T) - Static method in class io.github.astrapi69.comparator.ComparatorExtensions
-
Compares the given objects and returns the int value.
- compare(T, T) - Method in class io.github.astrapi69.comparator.NullCheckComparator
- compare(T, T) - Method in class io.github.astrapi69.comparator.object.HashCodeComparator
-
Compare two Objects by the hashcode.
- compare(T, T) - Method in class io.github.astrapi69.comparator.SortOrderComparator
- compare(T, T, SortOrder) - Static method in class io.github.astrapi69.comparator.ComparatorExtensions
-
Compares the given objects and returns the int value.
- CompareOrder - Enum Class in io.github.astrapi69.comparator
-
The enum
CompareOrderthat encapsulates the possible return values of the methodComparator.compare(Object, Object)
D
- DateComparator - Class in io.github.astrapi69.comparator.object
-
The class DateComparator sorts Date object in ascending order as default or descending if the
SortOrderis set toSortOrder.DESCENDING. - DateComparator() - Constructor for class io.github.astrapi69.comparator.object.DateComparator
- decoratedComparator(Comparator<T>) - Method in class io.github.astrapi69.comparator.NullCheckComparator.NullCheckComparatorBuilder
-
Sets the decorated
Comparatorobject - DEFAULT_SORT_ORDER - Static variable in class io.github.astrapi69.comparator.SortOrderComparator
-
The constant default sort order.
- DESCENDING - Enum constant in enum class io.github.astrapi69.comparator.SortOrder
-
The descending sort order
- DescendingDateComparator - Class in io.github.astrapi69.comparator.object
-
The class DescendingDateComparator sorts Date object in descending order.
- DescendingDateComparator() - Constructor for class io.github.astrapi69.comparator.object.DescendingDateComparator
E
- EQUAL - Enum constant in enum class io.github.astrapi69.comparator.CompareOrder
-
The order to sort an object as equal.
- equalNullCheck(T, T) - Static method in class io.github.astrapi69.comparator.ComparatorExtensions
-
Null check of the given objects that is intended for use in equals method.
G
- getOrder() - Method in enum class io.github.astrapi69.comparator.CompareOrder
-
Gets the order
H
- HashCodeComparator<T> - Class in io.github.astrapi69.comparator.object
-
This class compare two Objects by the hashcode.
- HashCodeComparator() - Constructor for class io.github.astrapi69.comparator.object.HashCodeComparator
I
- io.github.astrapi69.comparator - package io.github.astrapi69.comparator
-
This package provides utility classes for comparators and set the sort order
- io.github.astrapi69.comparator.factory - package io.github.astrapi69.comparator.factory
-
This package provides a factory class for comparators
- io.github.astrapi69.comparator.object - package io.github.astrapi69.comparator.object
-
This package provides comparators for Date, Locale, String and with the hashcode of the object
- io.github.astrapisixtynine.comparator.extensions - module io.github.astrapisixtynine.comparator.extensions
-
The MIT License Copyright (C) 2022 Asterios Raptis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- isGreater(T, T) - Static method in class io.github.astrapi69.comparator.ComparatorExtensions
-
Checks if the first given object is greater than the second given object
- isSame(T, T) - Static method in class io.github.astrapi69.comparator.ComparatorExtensions
-
Checks if the first given object is the same as the second given object
- isSmaller(T, T) - Static method in class io.github.astrapi69.comparator.ComparatorExtensions
-
Checks if the first given object is smaller than the second given object
L
- LocaleComparator - Class in io.github.astrapi69.comparator.object
-
The class
LocaleComparatorcompares Locale objects. - LocaleComparator() - Constructor for class io.github.astrapi69.comparator.object.LocaleComparator
N
- newBeanPropertyComparator(Function<? super T, ? extends U>) - Static method in class io.github.astrapi69.comparator.factory.ComparatorFactory
-
Factory method for create a new
Comparatorfrom the givenFunctionthe gets the bean property - newBeanPropertyComparator(Function<? super T, ? extends U>, boolean, boolean) - Static method in class io.github.astrapi69.comparator.factory.ComparatorFactory
-
Factory method for create a new
Comparatorfrom the givenFunctionthe gets the bean property - newDefinedOrderComparator(List<T>) - Static method in class io.github.astrapi69.comparator.factory.ComparatorFactory
-
Factory method for create a new
Comparatorfrom the givenListwith the defined order of the returnedComparator - newMapValuesComparator(Map<K, V>) - Static method in class io.github.astrapi69.comparator.factory.ComparatorFactory
-
Factory method for create a comparator for sort with the map values
- newRandomComparator(List<T>) - Static method in class io.github.astrapi69.comparator.factory.ComparatorFactory
-
Factory method for create a new
Comparatorfrom the givenListwith a random order. - newRandomComparator(List<T>, SecureRandom) - Static method in class io.github.astrapi69.comparator.factory.ComparatorFactory
-
Factory method for create a new
Comparatorfrom the givenListwith a random order. - newRandomMapValuesComparator(Map<K, V>, SecureRandom) - Static method in class io.github.astrapi69.comparator.factory.ComparatorFactory
-
Factory method for create a comparator for random sort of map values
- nullCheck(T, T) - Static method in class io.github.astrapi69.comparator.ComparatorExtensions
-
Checks if one of the given objects are null and returns the value for the Comparator or null if both are not null or if the given objects are not the same Object.
- nullCheck(T, T, boolean) - Static method in class io.github.astrapi69.comparator.ComparatorExtensions
-
Checks if one of the given objects are null and returns the value for the Comparator or null if both are not null or if the given objects are not the same Object.
- NullCheckComparator<T> - Class in io.github.astrapi69.comparator
-
The class
NullCheckComparatordecorates anotherComparatorobject to compare null and non-null values. - NullCheckComparator(Comparator<T>) - Constructor for class io.github.astrapi69.comparator.NullCheckComparator
-
Instantiates a
NullCheckComparatorfrom the givenComparatorobject. - NullCheckComparator(Comparator<T>, boolean) - Constructor for class io.github.astrapi69.comparator.NullCheckComparator
-
Instantiates a
NullCheckComparatorfrom the givenComparatorobject and the given flag. - NullCheckComparator.NullCheckComparatorBuilder<T> - Class in io.github.astrapi69.comparator
-
The class
NullCheckComparator.NullCheckComparatorBuilderis the builder for theNullCheckComparatorobject - nullIsGreaterThan(boolean) - Method in class io.github.astrapi69.comparator.NullCheckComparator.NullCheckComparatorBuilder
-
Sets the flag that specifies if null objects is greater than non-null objects
O
- of() - Static method in class io.github.astrapi69.comparator.ChainableComparator
-
Factory method to create a new chainable
Comparatorobject. - of() - Static method in class io.github.astrapi69.comparator.object.LocaleComparator
-
Factory method to create a new
LocaleComparatorobject. - of() - Static method in class io.github.astrapi69.comparator.object.StringComparator
-
Factory method to create a new
StringComparatorobject - of() - Static method in class io.github.astrapi69.comparator.object.StringLengthComparator
-
Factory method to create a new
StringLengthComparatorobject. - of() - Static method in class io.github.astrapi69.comparator.SortOrderComparator
-
Factory method to create a new
SortOrderComparatorwith the default sort order. - of(boolean) - Static method in class io.github.astrapi69.comparator.object.LocaleComparator
-
Factory method to create a new
LocaleComparatorobject. - of(boolean) - Static method in class io.github.astrapi69.comparator.object.StringComparator
-
Factory method to create a new
StringComparatorobject - of(boolean) - Static method in class io.github.astrapi69.comparator.object.StringLengthComparator
-
Factory method to create a new
StringLengthComparatorobject. - of(SortOrder) - Static method in class io.github.astrapi69.comparator.object.StringComparator
-
Factory method to create a new
StringComparatorobject - of(SortOrder) - Static method in class io.github.astrapi69.comparator.object.StringLengthComparator
-
Factory method to create a new
StringLengthComparatorobject. - of(SortOrder) - Static method in class io.github.astrapi69.comparator.SortOrderComparator
-
Factory method to create a new
SortOrderComparatorwith the default sort order. - of(SortOrder, boolean) - Static method in class io.github.astrapi69.comparator.object.StringComparator
-
Factory method to create a new
StringComparatorobject - of(SortOrder, boolean) - Static method in class io.github.astrapi69.comparator.object.StringLengthComparator
-
Factory method to create a new
StringLengthComparatorobject. - of(Comparator<T>) - Static method in class io.github.astrapi69.comparator.ChainableComparator
-
Factory method to create a new chainable
Comparatorobject from the givenComparatorobject. - of(Comparator<T>) - Static method in class io.github.astrapi69.comparator.NullCheckComparator
-
Factory method to create a new
NullCheckComparatorobject from the givenComparatorobject. - of(Comparator<T>, boolean) - Static method in class io.github.astrapi69.comparator.ChainableComparator
-
Factory method to create a new chainable
Comparatorobject from the givenComparatorobject and the given reverse flag. - of(Comparator<T>, boolean) - Static method in class io.github.astrapi69.comparator.NullCheckComparator
-
Factory method to create a new
NullCheckComparatorobject from the givenComparatorobject. - of(List<Comparator<T>>) - Static method in class io.github.astrapi69.comparator.ChainableComparator
-
Factory method to create a new chainable
Comparatorobject from the givenListofComparatorobjects. - of(List<Comparator<T>>, BitSet) - Static method in class io.github.astrapi69.comparator.ChainableComparator
-
Factory method to create a new chainable
Comparatorobject from the givenListofComparatorobjects.
S
- SortOrder - Enum Class in io.github.astrapi69.comparator
-
Sort order for
Comparator. - SortOrderComparator<T extends Comparable<T>> - Class in io.github.astrapi69.comparator
-
The abstract class
SortOrderComparatorcan be extended for adding the sort order ascending or descending. - SortOrderComparator() - Constructor for class io.github.astrapi69.comparator.SortOrderComparator
-
Instantiates a new
SortOrderComparatorwith the default sort order. - SortOrderComparator(SortOrder) - Constructor for class io.github.astrapi69.comparator.SortOrderComparator
-
Instantiates a new
SortOrderComparatorwith the given sort order. - StringComparator - Class in io.github.astrapi69.comparator.object
-
The class
StringComparatorsorts String objects in ascending order as default. - StringComparator() - Constructor for class io.github.astrapi69.comparator.object.StringComparator
-
Instantiates a new
StringComparatorobject - StringComparator(SortOrder) - Constructor for class io.github.astrapi69.comparator.object.StringComparator
-
Instantiates a new
StringComparatorobject - StringLengthComparator - Class in io.github.astrapi69.comparator.object
-
The class
StringLengthComparatorcomparesStringobjects based on length. - StringLengthComparator() - Constructor for class io.github.astrapi69.comparator.object.StringLengthComparator
-
Instantiates a new
StringLengthComparatorobject - StringLengthComparator(SortOrder) - Constructor for class io.github.astrapi69.comparator.object.StringLengthComparator
-
Instantiates a new
StringLengthComparator.
T
- toString() - Method in class io.github.astrapi69.comparator.NullCheckComparator.NullCheckComparatorBuilder
V
- valueOf(String) - Static method in enum class io.github.astrapi69.comparator.CompareOrder
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.astrapi69.comparator.SortOrder
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class io.github.astrapi69.comparator.CompareOrder
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.astrapi69.comparator.SortOrder
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Serialized Form