Index

A B C D E G H I L N O S T V 
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 NullCheckComparator object
builder() - Static method in class io.github.astrapi69.comparator.NullCheckComparator
Factory method to create a new NullCheckComparator.NullCheckComparatorBuilder object

C

ChainableComparator<T> - Class in io.github.astrapi69.comparator
The class ChainableComparator extends the ComparatorChain and provides factory methods for create ChainableComparator objects.
ComparatorExtensions - Class in io.github.astrapi69.comparator
The class ComparatorExtensions have helper methods for comparators.
ComparatorFactory - Class in io.github.astrapi69.comparator.factory
A factory for creating custom Comparator objects
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 CompareOrder that encapsulates the possible return values of the method Comparator.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 SortOrder is set to SortOrder.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 Comparator object
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 LocaleComparator compares 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 Comparator from the given Function the 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 Comparator from the given Function the gets the bean property
newDefinedOrderComparator(List<T>) - Static method in class io.github.astrapi69.comparator.factory.ComparatorFactory
Factory method for create a new Comparator from the given List with the defined order of the returned Comparator
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 Comparator from the given List with a random order.
newRandomComparator(List<T>, SecureRandom) - Static method in class io.github.astrapi69.comparator.factory.ComparatorFactory
Factory method for create a new Comparator from the given List with 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 NullCheckComparator decorates another Comparator object to compare null and non-null values.
NullCheckComparator(Comparator<T>) - Constructor for class io.github.astrapi69.comparator.NullCheckComparator
Instantiates a NullCheckComparator from the given Comparator object.
NullCheckComparator(Comparator<T>, boolean) - Constructor for class io.github.astrapi69.comparator.NullCheckComparator
Instantiates a NullCheckComparator from the given Comparator object and the given flag.
NullCheckComparator.NullCheckComparatorBuilder<T> - Class in io.github.astrapi69.comparator
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 Comparator object.
of() - Static method in class io.github.astrapi69.comparator.object.LocaleComparator
Factory method to create a new LocaleComparator object.
of() - Static method in class io.github.astrapi69.comparator.object.StringComparator
Factory method to create a new StringComparator object
of() - Static method in class io.github.astrapi69.comparator.object.StringLengthComparator
Factory method to create a new StringLengthComparator object.
of() - Static method in class io.github.astrapi69.comparator.SortOrderComparator
Factory method to create a new SortOrderComparator with the default sort order.
of(boolean) - Static method in class io.github.astrapi69.comparator.object.LocaleComparator
Factory method to create a new LocaleComparator object.
of(boolean) - Static method in class io.github.astrapi69.comparator.object.StringComparator
Factory method to create a new StringComparator object
of(boolean) - Static method in class io.github.astrapi69.comparator.object.StringLengthComparator
Factory method to create a new StringLengthComparator object.
of(SortOrder) - Static method in class io.github.astrapi69.comparator.object.StringComparator
Factory method to create a new StringComparator object
of(SortOrder) - Static method in class io.github.astrapi69.comparator.object.StringLengthComparator
Factory method to create a new StringLengthComparator object.
of(SortOrder) - Static method in class io.github.astrapi69.comparator.SortOrderComparator
Factory method to create a new SortOrderComparator with the default sort order.
of(SortOrder, boolean) - Static method in class io.github.astrapi69.comparator.object.StringComparator
Factory method to create a new StringComparator object
of(SortOrder, boolean) - Static method in class io.github.astrapi69.comparator.object.StringLengthComparator
Factory method to create a new StringLengthComparator object.
of(Comparator<T>) - Static method in class io.github.astrapi69.comparator.ChainableComparator
Factory method to create a new chainable Comparator object from the given Comparator object.
of(Comparator<T>) - Static method in class io.github.astrapi69.comparator.NullCheckComparator
Factory method to create a new NullCheckComparator object from the given Comparator object.
of(Comparator<T>, boolean) - Static method in class io.github.astrapi69.comparator.ChainableComparator
Factory method to create a new chainable Comparator object from the given Comparator object and the given reverse flag.
of(Comparator<T>, boolean) - Static method in class io.github.astrapi69.comparator.NullCheckComparator
Factory method to create a new NullCheckComparator object from the given Comparator object.
of(List<Comparator<T>>) - Static method in class io.github.astrapi69.comparator.ChainableComparator
Factory method to create a new chainable Comparator object from the given List of Comparator objects.
of(List<Comparator<T>>, BitSet) - Static method in class io.github.astrapi69.comparator.ChainableComparator
Factory method to create a new chainable Comparator object from the given List of Comparator objects.

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 SortOrderComparator can be extended for adding the sort order ascending or descending.
SortOrderComparator() - Constructor for class io.github.astrapi69.comparator.SortOrderComparator
Instantiates a new SortOrderComparator with the default sort order.
SortOrderComparator(SortOrder) - Constructor for class io.github.astrapi69.comparator.SortOrderComparator
Instantiates a new SortOrderComparator with the given sort order.
StringComparator - Class in io.github.astrapi69.comparator.object
The class StringComparator sorts String objects in ascending order as default.
StringComparator() - Constructor for class io.github.astrapi69.comparator.object.StringComparator
Instantiates a new StringComparator object
StringComparator(SortOrder) - Constructor for class io.github.astrapi69.comparator.object.StringComparator
Instantiates a new StringComparator object
StringLengthComparator - Class in io.github.astrapi69.comparator.object
The class StringLengthComparator compares String objects based on length.
StringLengthComparator() - Constructor for class io.github.astrapi69.comparator.object.StringLengthComparator
Instantiates a new StringLengthComparator object
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.
A B C D E G H I L N O S T V 
All Classes and Interfaces|All Packages|Serialized Form