@DefaultAnnotationForFields(edu.umd.cs.findbugs.annotations.NonNull.class) @DefaultAnnotationForParameters(edu.umd.cs.findbugs.annotations.NonNull.class) @DefaultAnnotationForMethods(edu.umd.cs.findbugs.annotations.NonNull.class)
Package org.linkki.util
-
Class Summary Class Description BeanUtils BooleanSuppliers Classes Utility for handlingClasses.Consumers DateFormats A registry for date format patterns that changes some rather unsuitable default patterns provided byDateFormat.getDateInstance(int, Locale)such as the German "dd.MM.yyyy" instead of "dd.MM.yy".ExceptionSupplier Helper class that for exception suppliers to simplify usage ofOptional.orElseThrow(Supplier).HtmlSanitizer Deprecated. Useorg.linkki.core.util.HtmlSanitizerinsteadLazyCachingSupplier<T> Deprecated. Since 2.0, useLazyReferenceinsteadLazyInitializingMap<K,V> Key-value store that initializes its values lazily.LazyReference<T> ASupplierthat wraps anotherSupplierwhich gets called only once upon the first call toLazyReference.get(); afterwards the value is cached.LookupProvider JDK-independent provider forMethodHandles.Lookupinstances.MemberAccessors Utility class to get easy access to the return value of a method or the current object of a field.MetaAnnotation<META extends Annotation> Objects Providesstaticutility methods that delegate toObjectsand are additionally annotated with SpotBugsnullannotations.Optionals Utility class forOptional.Optionals.Either<T> Wrapper around anOptionalthat offers Java 9's Optional#or method.Sequence<T> This sequence is a wrapper for a list to create immutable lists easily.StreamUtil TwoDigitYearUtil Recalculates two digit years into four digit years, based on the -80 / +19 rule, forLocalDateandLocalDateTimeduring the convertToModel conversion.