Module org.apache.sis.util
Package org.apache.sis.util
package org.apache.sis.util
Simple data objects and miscellaneous utilities.
This package provides general purpose static methods working on primitive or basic Java types
(
Characters
,
CharSequences
,
StringBuilders
,
Locales
,
Numbers
,
Classes
), arrays
(ArraysExt
) or other standard Java types
(Exceptions
).
It defines also general purpose annotations, enumerations and exceptions.
Some other noticeable services are:
ObjectConverters
, together with theObjectConverter
interface, for converting various kinds of objects.Utilities
, together with theLenientComparable
interface, for comparing objects in various ways.
- Since:
- 0.3
-
ClassDescriptionBase class for character strings that has been internationalized into several locales.Static methods for performing argument checks.Static methods for simple operations on arrays and array elements.Static methods working on
char
values, and some character constants.Subsets of Unicode characters identified by their general category.Static methods working withCharSequence
instances.Static methods working onClass
objects.Specifies the level of strictness when comparing twoLenientComparable
objects for equality.May be thrown on attempt to use an object which has been corrupted by a previous operation.Annotates classes or methods that are provided mostly for debugging purpose.An international string using a map of strings for different locales.Interface of classes for which deprecated instances may exist.A resource that can be disposed when waiting for the garbage collector would be overly conservative.Interface of classes for which empty instances may exist.Static methods working withException
instances.Interfaces of classes for which instances can be compared for equality using different levels of strictness.Static methods working onLocale
instances.Interface of classes for which each instance is configured for a particular locale.An exception which can produce an error message in the client locale.Deprecated, for removal: This API element is subject to removal in a future version.Static methods working withNumber
objects, and a few primitive types by extension.ObjectConverter<S,T> A function which converts instances of source type to instances of target type.Static methods for creatingObjectConverter
instances or collection views based on converters.Marker annotation for methods which may returnjava.util.Optional
in a future version.An international string backed by aResourceBundle
.An international string consisting of a single string for all locales.Parent of SIS classes that contain only static utility methods.Static methods working onStringBuilder
instances.Thrown when an object cannot be converted from the source type to the target type.Thrown when an operation cannot complete because a given name is unrecognized.Thrown when an operation cannot use arbitrary implementation of an interface, and a given instance does not met the requirement.Static methods for object comparisons in different ways (deeply, approximately, etc).Holds a version number as a sequence of strings separated by either a dot or a dash.Annotates code containing workarounds for bugs or limitations in an external library.
Objects.requireNonNull(…)
.