| Modifier and Type | Method and Description |
|---|---|
static Clone |
Clone.basic()
Returns
Clone algorithm that is able to clone basic object types as well as simple Collections and Maps. |
T |
CloneBehavior.clone(RecursiveClone clone,
int depth)
Returns cloned instance of the object implementing
CloneBehavior. |
O |
GlobalCloneBehavior.clone(RecursiveClone clone,
O object,
int depth)
Returns clone of the specified object.
|
<T> T |
RecursiveClone.cloneFields(T object,
int depth)
Returns clone of the specified object with all field values cloned according to
Clone settings. |
static Clone |
Clone.deep()
Returns
Clone algorithm that can also clone custom objects through ReflectionCloneBehavior. |
<T> T |
Clone.nonNullClone(T object)
Returns non-
null clone of the specified object. |
static Clone |
Clone.reflective()
|
| Modifier and Type | Method and Description |
|---|---|
T |
CloneBehavior.clone(RecursiveClone clone,
int depth)
Returns cloned instance of the object implementing
CloneBehavior. |
O |
GlobalCloneBehavior.clone(RecursiveClone clone,
O object,
int depth)
Returns clone of the specified object.
|
O |
GlobalCloneBehavior.clone(RecursiveClone clone,
O object,
int depth)
Returns clone of the specified object.
|
<T> T |
RecursiveClone.cloneFields(T object,
int depth)
Returns clone of the specified object with all field values cloned according to
Clone settings. |
<T> T |
Clone.nonNullClone(T object)
Returns non-
null clone of the specified object. |
Object |
UnknownResolver.resolve(RecursiveClone clone,
Object object)
Returns clone result for object of unknown type.
|
Object |
UnknownResolver.resolve(RecursiveClone clone,
Object object)
Returns clone result for object of unknown type.
|
Object |
AbstractRecursiveClone.retrieve(Object object) |
Object |
RecursiveClone.retrieve(Object object)
Returns object clone if it is already available,
null otherwise. |
void |
AbstractRecursiveClone.store(Object object,
Object clone) |
void |
RecursiveClone.store(Object object,
Object clone)
Stores reference to object clone.
|
boolean |
GlobalCloneBehavior.supports(RecursiveClone clone,
Object object)
Returns whether or not this behavior supports cloning of the specified object.
|
boolean |
GlobalCloneBehavior.supports(RecursiveClone clone,
Object object)
Returns whether or not this behavior supports cloning of the specified object.
|
| Constructor and Description |
|---|
Clone(UnknownResolver unknownResolver,
GlobalCloneBehavior... behaviors)
Constructs new
Clone algorithm. |
Clone(UnknownResolver unknownResolver,
GlobalCloneBehavior... behaviors)
Constructs new
Clone algorithm. |
Clone(UnknownResolver unknownResolver,
List<GlobalCloneBehavior> behaviors)
Constructs new
Clone algorithm. |
Clone(UnknownResolver unknownResolver,
List<GlobalCloneBehavior> behaviors)
Constructs new
Clone algorithm. |
CloneException(String message)
Constructs a new
CloneException with the specified detail message. |
CloneException(String message,
Throwable cause)
Constructs a new
CloneException with the specified detail message and cause. |
CloneException(String message,
Throwable cause)
Constructs a new
CloneException with the specified detail message and cause. |
CloneException(Throwable cause)
Constructs a new
CloneException with the specified cause. |
| Modifier and Type | Method and Description |
|---|---|
Collection |
CollectionCloneBehavior.clone(RecursiveClone clone,
Collection collection,
int depth) |
Map |
MapCloneBehavior.clone(RecursiveClone clone,
Map map,
int depth) |
Object |
ArrayCloneBehavior.clone(RecursiveClone clone,
Object array,
int depth) |
Object |
BasicCloneBehavior.clone(RecursiveClone clone,
Object object,
int depth) |
O |
ReflectionCloneBehavior.clone(RecursiveClone clone,
O object,
int depth) |
Set |
SetCloneBehavior.clone(RecursiveClone clone,
Set set,
int depth) |
T |
RedefinedCloneBehavior.clone(RecursiveClone clone,
T object,
int depth) |
T |
CloneableCloneBehavior.clone(RecursiveClone clone,
T object,
int depth) |
| Modifier and Type | Method and Description |
|---|---|
Collection |
CollectionCloneBehavior.clone(RecursiveClone clone,
Collection collection,
int depth) |
Collection |
CollectionCloneBehavior.clone(RecursiveClone clone,
Collection collection,
int depth) |
Map |
MapCloneBehavior.clone(RecursiveClone clone,
Map map,
int depth) |
Map |
MapCloneBehavior.clone(RecursiveClone clone,
Map map,
int depth) |
Object |
ArrayCloneBehavior.clone(RecursiveClone clone,
Object array,
int depth) |
Object |
ArrayCloneBehavior.clone(RecursiveClone clone,
Object array,
int depth) |
Object |
BasicCloneBehavior.clone(RecursiveClone clone,
Object object,
int depth) |
Object |
BasicCloneBehavior.clone(RecursiveClone clone,
Object object,
int depth) |
O |
ReflectionCloneBehavior.clone(RecursiveClone clone,
O object,
int depth) |
O |
ReflectionCloneBehavior.clone(RecursiveClone clone,
O object,
int depth) |
Set |
SetCloneBehavior.clone(RecursiveClone clone,
Set set,
int depth) |
Set |
SetCloneBehavior.clone(RecursiveClone clone,
Set set,
int depth) |
T |
RedefinedCloneBehavior.clone(RecursiveClone clone,
T object,
int depth) |
T |
RedefinedCloneBehavior.clone(RecursiveClone clone,
T object,
int depth) |
T |
CloneableCloneBehavior.clone(RecursiveClone clone,
T object,
int depth) |
T |
CloneableCloneBehavior.clone(RecursiveClone clone,
T object,
int depth) |
boolean |
RedefinedCloneBehavior.supports(RecursiveClone clone,
Object object) |
boolean |
RedefinedCloneBehavior.supports(RecursiveClone clone,
Object object) |
boolean |
SetCloneBehavior.supports(RecursiveClone clone,
Object object) |
boolean |
SetCloneBehavior.supports(RecursiveClone clone,
Object object) |
boolean |
ArrayCloneBehavior.supports(RecursiveClone clone,
Object object) |
boolean |
ArrayCloneBehavior.supports(RecursiveClone clone,
Object object) |
boolean |
ReflectionCloneBehavior.supports(RecursiveClone clone,
Object object) |
boolean |
ReflectionCloneBehavior.supports(RecursiveClone clone,
Object object) |
boolean |
CloneableCloneBehavior.supports(RecursiveClone clone,
Object object) |
boolean |
CloneableCloneBehavior.supports(RecursiveClone clone,
Object object) |
boolean |
BasicCloneBehavior.supports(RecursiveClone clone,
Object object) |
boolean |
BasicCloneBehavior.supports(RecursiveClone clone,
Object object) |
boolean |
MapCloneBehavior.supports(RecursiveClone clone,
Object object) |
boolean |
MapCloneBehavior.supports(RecursiveClone clone,
Object object) |
boolean |
CollectionCloneBehavior.supports(RecursiveClone clone,
Object object) |
boolean |
CollectionCloneBehavior.supports(RecursiveClone clone,
Object object) |
| Constructor and Description |
|---|
ReflectionCloneBehavior(ReflectionCloneBehavior.Policy policy,
ModifierType... ignoredModifiers)
Constructs new
ReflectionCloneBehavior ignoring fields with specified modifiers. |
ReflectionCloneBehavior(ReflectionCloneBehavior.Policy policy,
ModifierType... ignoredModifiers)
Constructs new
ReflectionCloneBehavior ignoring fields with specified modifiers. |
| Modifier and Type | Method and Description |
|---|---|
Object |
ExceptionUnknownResolver.resolve(RecursiveClone clone,
Object object) |
Object |
ExceptionUnknownResolver.resolve(RecursiveClone clone,
Object object) |
Object |
SkippingUnknownResolver.resolve(RecursiveClone clone,
Object object) |
Object |
SkippingUnknownResolver.resolve(RecursiveClone clone,
Object object) |
| Modifier and Type | Method and Description |
|---|---|
static BoxOrientation |
BoxOrientation.get(int value)
Returns enumeration literal referencing constant value.
|
| Modifier and Type | Method and Description |
|---|---|
protected Collection |
AbstractDuplicateResolver.removeDuplicates(Collection collection)
Removes any duplicates from the specified
Collection and returns it. |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
AbstractDuplicateResolver.firstDuplicate(Collection collection)
Returns first
Collection duplicates if it has any, null if it has none. |
protected boolean |
AbstractDuplicateResolver.hasDuplicates(Collection collection)
Returns whether or not specified
Collection has one or more duplicates. |
protected Collection |
AbstractDuplicateResolver.removeDuplicates(Collection collection)
Removes any duplicates from the specified
Collection and returns it. |
void |
RejectDuplicates.resolve(Collection collection) |
void |
DuplicateResolver.resolve(Collection collection)
Resolves duplicates within specified
Collection. |
void |
RemoveDuplicates.resolve(Collection collection) |
void |
IgnoreDuplicates.resolve(Collection collection) |
| Constructor and Description |
|---|
AbstractDuplicateResolver(Matcher matcher)
Constructs new
AbstractDuplicateResolver. |
DuplicateException(String message)
Constructs a new
DuplicateException with the specified detail message. |
DuplicateException(String message,
Throwable cause)
Constructs a new
DuplicateException with the specified detail message and cause. |
DuplicateException(String message,
Throwable cause)
Constructs a new
DuplicateException with the specified detail message and cause. |
DuplicateException(Throwable cause)
Constructs a new
DuplicateException with the specified cause. |
RejectDuplicates(Matcher matcher)
Constructs new
RejectDuplicates. |
RemoveDuplicates(Matcher matcher)
Constructs new
RemoveDuplicates. |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
Objects.requireNonNull(T object)
|
static <T> T |
Objects.requireNonNull(T object,
String message)
|
static <T> T |
Objects.requireNonNull(T object,
Supplier<RuntimeException> exceptionSupplier)
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
Objects.requireNonNull(T object,
String message)
|
static <T> T |
Objects.requireNonNull(T object,
Supplier<RuntimeException> exceptionSupplier)
|
| Constructor and Description |
|---|
MatchingException(String message)
Constructs a new
MatchingException with the specified detail message. |
MatchingException(String message,
Throwable cause)
Constructs a new
MatchingException with the specified detail message and cause. |
MatchingException(String message,
Throwable cause)
Constructs a new
MatchingException with the specified detail message and cause. |
MatchingException(Throwable cause)
Constructs a new
MatchingException with the specified cause. |
| Modifier and Type | Method and Description |
|---|---|
static Merge |
Merge.basic()
Returns
Merge algorithm that is able to merge basic object types. |
static Merge |
Merge.basicRaw()
Returns
Merge algorithm that is able to merge basic object types. |
static Merge |
Merge.deep()
Returns
Merge algorithm that can also merge custom objects through ReflectionMergeBehavior. |
static Merge |
Merge.deepRaw()
Returns
Merge algorithm that can also merge custom objects through ReflectionMergeBehavior. |
R |
GlobalMergeBehavior.merge(RecursiveMerge merge,
Class type,
O base,
M merged,
int depth)
Performs merge of the two provided objects and returns resulting object.
|
T |
MergeBehavior.merge(RecursiveMerge merge,
Class type,
T object,
int depth)
Returns object as a result of merging another
object on top of this one. |
<T> T |
RecursiveMerge.mergeFields(Class type,
Object base,
Object merged,
int depth)
Performs merge result of the two provided objects with all field values merged according to
Merge settings. |
<T> T |
Merge.nonNullMerge(Collection<?> objects)
Performs merge of all provided objects and returns resulting non-
null object. |
<T> T |
Merge.nonNullMerge(Object base,
Object merged)
Performs merge of the two provided objects and returns resulting non-
null object. |
<T> T |
Merge.nonNullMerge(Object base,
Object merged,
Object... more)
Performs merge of all provided objects and returns resulting non-
null object. |
Object |
UnknownResolver.resolve(RecursiveMerge merge,
Object object,
Object merged)
Returns merge result of two objects of unknown type.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
RecursiveMerge.merge(Class type,
Object base,
Object merged,
int depth)
Performs merge result of the two provided objects and returns resulting object.
|
<T> T |
Merge.merge(Collection<?> objects)
Performs merge of all provided objects and returns resulting object.
|
<T> T |
Merge.merge(Object base,
Object merged,
Object... more)
Performs merge of all provided objects and returns resulting object.
|
R |
GlobalMergeBehavior.merge(RecursiveMerge merge,
Class type,
O base,
M merged,
int depth)
Performs merge of the two provided objects and returns resulting object.
|
R |
GlobalMergeBehavior.merge(RecursiveMerge merge,
Class type,
O base,
M merged,
int depth)
Performs merge of the two provided objects and returns resulting object.
|
R |
GlobalMergeBehavior.merge(RecursiveMerge merge,
Class type,
O base,
M merged,
int depth)
Performs merge of the two provided objects and returns resulting object.
|
R |
GlobalMergeBehavior.merge(RecursiveMerge merge,
Class type,
O base,
M merged,
int depth)
Performs merge of the two provided objects and returns resulting object.
|
T |
MergeBehavior.merge(RecursiveMerge merge,
Class type,
T object,
int depth)
Returns object as a result of merging another
object on top of this one. |
T |
MergeBehavior.merge(RecursiveMerge merge,
Class type,
T object,
int depth)
Returns object as a result of merging another
object on top of this one. |
T |
MergeBehavior.merge(RecursiveMerge merge,
Class type,
T object,
int depth)
Returns object as a result of merging another
object on top of this one. |
<T> T |
RecursiveMerge.mergeFields(Class type,
Object base,
Object merged,
int depth)
Performs merge result of the two provided objects with all field values merged according to
Merge settings. |
<T> T |
RecursiveMerge.mergeFields(Class type,
Object base,
Object merged,
int depth)
Performs merge result of the two provided objects with all field values merged according to
Merge settings. |
<T> T |
RecursiveMerge.mergeFields(Class type,
Object base,
Object merged,
int depth)
Performs merge result of the two provided objects with all field values merged according to
Merge settings. |
<T> T |
Merge.nonNullMerge(Collection<?> objects)
Performs merge of all provided objects and returns resulting non-
null object. |
<T> T |
Merge.nonNullMerge(Object base,
Object merged)
Performs merge of the two provided objects and returns resulting non-
null object. |
<T> T |
Merge.nonNullMerge(Object base,
Object merged)
Performs merge of the two provided objects and returns resulting non-
null object. |
<T> T |
Merge.nonNullMerge(Object base,
Object merged,
Object... more)
Performs merge of all provided objects and returns resulting non-
null object. |
<T> T |
Merge.nonNullMerge(Object base,
Object merged,
Object... more)
Performs merge of all provided objects and returns resulting non-
null object. |
<T> T |
Merge.nonNullMerge(Object base,
Object merged,
Object... more)
Performs merge of all provided objects and returns resulting non-
null object. |
Object |
NullResolver.resolve(RecursiveMerge merge,
Object object,
Object merged)
Returns one of the specified objects.
|
Object |
UnknownResolver.resolve(RecursiveMerge merge,
Object object,
Object merged)
Returns merge result of two objects of unknown type.
|
Object |
UnknownResolver.resolve(RecursiveMerge merge,
Object object,
Object merged)
Returns merge result of two objects of unknown type.
|
Object |
UnknownResolver.resolve(RecursiveMerge merge,
Object object,
Object merged)
Returns merge result of two objects of unknown type.
|
boolean |
GlobalMergeBehavior.supports(RecursiveMerge merge,
Class<R> type,
Object base,
Object merged)
Returns whether or not this behavior supports specified objects merge.
|
boolean |
GlobalMergeBehavior.supports(RecursiveMerge merge,
Class<R> type,
Object base,
Object merged)
Returns whether or not this behavior supports specified objects merge.
|
boolean |
GlobalMergeBehavior.supports(RecursiveMerge merge,
Class<R> type,
Object base,
Object merged)
Returns whether or not this behavior supports specified objects merge.
|
boolean |
GlobalMergeBehavior.supports(RecursiveMerge merge,
Class<R> type,
Object base,
Object merged)
Returns whether or not this behavior supports specified objects merge.
|
| Constructor and Description |
|---|
Merge(ClonePolicy baseClonePolicy,
ClonePolicy mergedClonePolicy,
NullResolver nullResolver,
UnknownResolver unknownResolver,
GlobalMergeBehavior... behaviors)
Constructs new
Merge algorithm. |
Merge(ClonePolicy baseClonePolicy,
ClonePolicy mergedClonePolicy,
NullResolver nullResolver,
UnknownResolver unknownResolver,
GlobalMergeBehavior... behaviors)
Constructs new
Merge algorithm. |
Merge(ClonePolicy baseClonePolicy,
ClonePolicy mergedClonePolicy,
NullResolver nullResolver,
UnknownResolver unknownResolver,
GlobalMergeBehavior... behaviors)
Constructs new
Merge algorithm. |
Merge(ClonePolicy baseClonePolicy,
ClonePolicy mergedClonePolicy,
NullResolver nullResolver,
UnknownResolver unknownResolver,
GlobalMergeBehavior... behaviors)
Constructs new
Merge algorithm. |
Merge(ClonePolicy baseClonePolicy,
ClonePolicy mergedClonePolicy,
NullResolver nullResolver,
UnknownResolver unknownResolver,
GlobalMergeBehavior... behaviors)
Constructs new
Merge algorithm. |
Merge(ClonePolicy baseClonePolicy,
ClonePolicy mergedClonePolicy,
NullResolver nullResolver,
UnknownResolver unknownResolver,
List<GlobalMergeBehavior> behaviors)
Constructs new
Merge algorithm. |
Merge(ClonePolicy baseClonePolicy,
ClonePolicy mergedClonePolicy,
NullResolver nullResolver,
UnknownResolver unknownResolver,
List<GlobalMergeBehavior> behaviors)
Constructs new
Merge algorithm. |
Merge(ClonePolicy baseClonePolicy,
ClonePolicy mergedClonePolicy,
NullResolver nullResolver,
UnknownResolver unknownResolver,
List<GlobalMergeBehavior> behaviors)
Constructs new
Merge algorithm. |
Merge(ClonePolicy baseClonePolicy,
ClonePolicy mergedClonePolicy,
NullResolver nullResolver,
UnknownResolver unknownResolver,
List<GlobalMergeBehavior> behaviors)
Constructs new
Merge algorithm. |
Merge(ClonePolicy baseClonePolicy,
ClonePolicy mergedClonePolicy,
NullResolver nullResolver,
UnknownResolver unknownResolver,
List<GlobalMergeBehavior> behaviors)
Constructs new
Merge algorithm. |
Merge(NullResolver nullResolver,
UnknownResolver unknownResolver,
GlobalMergeBehavior... behaviors)
Constructs new
Merge algorithm. |
Merge(NullResolver nullResolver,
UnknownResolver unknownResolver,
GlobalMergeBehavior... behaviors)
Constructs new
Merge algorithm. |
Merge(NullResolver nullResolver,
UnknownResolver unknownResolver,
GlobalMergeBehavior... behaviors)
Constructs new
Merge algorithm. |
Merge(NullResolver nullResolver,
UnknownResolver unknownResolver,
List<GlobalMergeBehavior> behaviors)
Constructs new
Merge algorithm. |
Merge(NullResolver nullResolver,
UnknownResolver unknownResolver,
List<GlobalMergeBehavior> behaviors)
Constructs new
Merge algorithm. |
Merge(NullResolver nullResolver,
UnknownResolver unknownResolver,
List<GlobalMergeBehavior> behaviors)
Constructs new
Merge algorithm. |
MergeException(String message)
Constructs a new
MergeException with the specified detail message. |
MergeException(String message,
Throwable cause)
Constructs a new
MergeException with the specified detail message and cause. |
MergeException(String message,
Throwable cause)
Constructs a new
MergeException with the specified detail message and cause. |
MergeException(Throwable cause)
Constructs a new
MergeException with the specified cause. |
| Modifier and Type | Method and Description |
|---|---|
Object |
ReflectionMergeBehavior.merge(RecursiveMerge merge,
Class type,
Object base,
Object merged,
int depth) |
Object |
BasicMergeBehavior.merge(RecursiveMerge merge,
Class type,
Object base,
Object merged,
int depth) |
Object |
IndexArrayMergeBehavior.merge(RecursiveMerge merge,
Class type,
Object base,
Object merged,
int depth) |
T |
MergeableMergeBehavior.merge(RecursiveMerge merge,
Class type,
T base,
T merged,
int depth) |
T |
IndexListMergeBehavior.merge(RecursiveMerge merge,
Class type,
T base,
T merged,
int depth) |
T |
MapMergeBehavior.merge(RecursiveMerge merge,
Class type,
T base,
T merged,
int depth) |
T |
ListMergeBehavior.merge(RecursiveMerge merge,
Class type,
T base,
T merged,
int depth) |
| Modifier and Type | Method and Description |
|---|---|
Object |
ReflectionMergeBehavior.merge(RecursiveMerge merge,
Class type,
Object base,
Object merged,
int depth) |
Object |
ReflectionMergeBehavior.merge(RecursiveMerge merge,
Class type,
Object base,
Object merged,
int depth) |
Object |
ReflectionMergeBehavior.merge(RecursiveMerge merge,
Class type,
Object base,
Object merged,
int depth) |
Object |
ReflectionMergeBehavior.merge(RecursiveMerge merge,
Class type,
Object base,
Object merged,
int depth) |
Object |
BasicMergeBehavior.merge(RecursiveMerge merge,
Class type,
Object base,
Object merged,
int depth) |
Object |
BasicMergeBehavior.merge(RecursiveMerge merge,
Class type,
Object base,
Object merged,
int depth) |
Object |
BasicMergeBehavior.merge(RecursiveMerge merge,
Class type,
Object base,
Object merged,
int depth) |
Object |
BasicMergeBehavior.merge(RecursiveMerge merge,
Class type,
Object base,
Object merged,
int depth) |
Object |
IndexArrayMergeBehavior.merge(RecursiveMerge merge,
Class type,
Object base,
Object merged,
int depth) |
Object |
IndexArrayMergeBehavior.merge(RecursiveMerge merge,
Class type,
Object base,
Object merged,
int depth) |
Object |
IndexArrayMergeBehavior.merge(RecursiveMerge merge,
Class type,
Object base,
Object merged,
int depth) |
Object |
IndexArrayMergeBehavior.merge(RecursiveMerge merge,
Class type,
Object base,
Object merged,
int depth) |
T |
MergeableMergeBehavior.merge(RecursiveMerge merge,
Class type,
T base,
T merged,
int depth) |
T |
MergeableMergeBehavior.merge(RecursiveMerge merge,
Class type,
T base,
T merged,
int depth) |
T |
MergeableMergeBehavior.merge(RecursiveMerge merge,
Class type,
T base,
T merged,
int depth) |
T |
MergeableMergeBehavior.merge(RecursiveMerge merge,
Class type,
T base,
T merged,
int depth) |
T |
IndexListMergeBehavior.merge(RecursiveMerge merge,
Class type,
T base,
T merged,
int depth) |
T |
IndexListMergeBehavior.merge(RecursiveMerge merge,
Class type,
T base,
T merged,
int depth) |
T |
IndexListMergeBehavior.merge(RecursiveMerge merge,
Class type,
T base,
T merged,
int depth) |
T |
IndexListMergeBehavior.merge(RecursiveMerge merge,
Class type,
T base,
T merged,
int depth) |
T |
MapMergeBehavior.merge(RecursiveMerge merge,
Class type,
T base,
T merged,
int depth) |
T |
MapMergeBehavior.merge(RecursiveMerge merge,
Class type,
T base,
T merged,
int depth) |
T |
MapMergeBehavior.merge(RecursiveMerge merge,
Class type,
T base,
T merged,
int depth) |
T |
MapMergeBehavior.merge(RecursiveMerge merge,
Class type,
T base,
T merged,
int depth) |
T |
ListMergeBehavior.merge(RecursiveMerge merge,
Class type,
T base,
T merged,
int depth) |
T |
ListMergeBehavior.merge(RecursiveMerge merge,
Class type,
T base,
T merged,
int depth) |
T |
ListMergeBehavior.merge(RecursiveMerge merge,
Class type,
T base,
T merged,
int depth) |
T |
ListMergeBehavior.merge(RecursiveMerge merge,
Class type,
T base,
T merged,
int depth) |
boolean |
ReflectionMergeBehavior.supports(RecursiveMerge merge,
Class<Object> type,
Object base,
Object merged) |
boolean |
ReflectionMergeBehavior.supports(RecursiveMerge merge,
Class<Object> type,
Object base,
Object merged) |
boolean |
ReflectionMergeBehavior.supports(RecursiveMerge merge,
Class<Object> type,
Object base,
Object merged) |
boolean |
ReflectionMergeBehavior.supports(RecursiveMerge merge,
Class<Object> type,
Object base,
Object merged) |
boolean |
BasicMergeBehavior.supports(RecursiveMerge merge,
Class<Object> type,
Object base,
Object merged) |
boolean |
BasicMergeBehavior.supports(RecursiveMerge merge,
Class<Object> type,
Object base,
Object merged) |
boolean |
BasicMergeBehavior.supports(RecursiveMerge merge,
Class<Object> type,
Object base,
Object merged) |
boolean |
BasicMergeBehavior.supports(RecursiveMerge merge,
Class<Object> type,
Object base,
Object merged) |
boolean |
IndexArrayMergeBehavior.supports(RecursiveMerge merge,
Class<Object> type,
Object base,
Object merged)
todo 1.
|
boolean |
IndexArrayMergeBehavior.supports(RecursiveMerge merge,
Class<Object> type,
Object base,
Object merged)
todo 1.
|
boolean |
IndexArrayMergeBehavior.supports(RecursiveMerge merge,
Class<Object> type,
Object base,
Object merged)
todo 1.
|
boolean |
IndexArrayMergeBehavior.supports(RecursiveMerge merge,
Class<Object> type,
Object base,
Object merged)
todo 1.
|
boolean |
MergeableMergeBehavior.supports(RecursiveMerge merge,
Class<T> type,
Object base,
Object merged) |
boolean |
MergeableMergeBehavior.supports(RecursiveMerge merge,
Class<T> type,
Object base,
Object merged) |
boolean |
MergeableMergeBehavior.supports(RecursiveMerge merge,
Class<T> type,
Object base,
Object merged) |
boolean |
MergeableMergeBehavior.supports(RecursiveMerge merge,
Class<T> type,
Object base,
Object merged) |
boolean |
IndexListMergeBehavior.supports(RecursiveMerge merge,
Class<T> type,
Object base,
Object merged) |
boolean |
IndexListMergeBehavior.supports(RecursiveMerge merge,
Class<T> type,
Object base,
Object merged) |
boolean |
IndexListMergeBehavior.supports(RecursiveMerge merge,
Class<T> type,
Object base,
Object merged) |
boolean |
IndexListMergeBehavior.supports(RecursiveMerge merge,
Class<T> type,
Object base,
Object merged) |
boolean |
MapMergeBehavior.supports(RecursiveMerge merge,
Class<T> type,
Object base,
Object merged)
todo 1.
|
boolean |
MapMergeBehavior.supports(RecursiveMerge merge,
Class<T> type,
Object base,
Object merged)
todo 1.
|
boolean |
MapMergeBehavior.supports(RecursiveMerge merge,
Class<T> type,
Object base,
Object merged)
todo 1.
|
boolean |
MapMergeBehavior.supports(RecursiveMerge merge,
Class<T> type,
Object base,
Object merged)
todo 1.
|
boolean |
ListMergeBehavior.supports(RecursiveMerge merge,
Class<T> type,
Object base,
Object merged) |
boolean |
ListMergeBehavior.supports(RecursiveMerge merge,
Class<T> type,
Object base,
Object merged) |
boolean |
ListMergeBehavior.supports(RecursiveMerge merge,
Class<T> type,
Object base,
Object merged) |
boolean |
ListMergeBehavior.supports(RecursiveMerge merge,
Class<T> type,
Object base,
Object merged) |
| Constructor and Description |
|---|
ListMergeBehavior(Matcher matcher)
Constructs new
ListMergeBehavior. |
ListMergeBehavior(Matcher matcher,
DuplicateResolver baseDuplicateResolver,
DuplicateResolver mergedDuplicateResolver)
Constructs new
ListMergeBehavior. |
ListMergeBehavior(Matcher matcher,
DuplicateResolver baseDuplicateResolver,
DuplicateResolver mergedDuplicateResolver)
Constructs new
ListMergeBehavior. |
ListMergeBehavior(Matcher matcher,
DuplicateResolver baseDuplicateResolver,
DuplicateResolver mergedDuplicateResolver)
Constructs new
ListMergeBehavior. |
ReflectionMergeBehavior(ReflectionMergeBehavior.Policy policy,
ModifierType... ignoredModifiers)
Constructs new
ReflectionMergeBehavior ignoring fields with specified modifiers. |
ReflectionMergeBehavior(ReflectionMergeBehavior.Policy policy,
ModifierType... ignoredModifiers)
Constructs new
ReflectionMergeBehavior ignoring fields with specified modifiers. |
| Constructor and Description |
|---|
PerformClonePolicy(Clone clone)
Constucts new
PerformClonePolicy. |
| Modifier and Type | Method and Description |
|---|---|
Object |
OverwritingNullResolver.resolve(RecursiveMerge merge,
Object object,
Object merged) |
Object |
ExceptionNullResolver.resolve(RecursiveMerge merge,
Object object,
Object merged) |
Object |
SkippingNullResolver.resolve(RecursiveMerge merge,
Object object,
Object merged) |
| Modifier and Type | Method and Description |
|---|---|
Object |
OverwritingUnknownResolver.resolve(RecursiveMerge merge,
Object object,
Object merged) |
Object |
ExceptionUnknownResolver.resolve(RecursiveMerge merge,
Object object,
Object merged) |
Object |
SkippingUnknownResolver.resolve(RecursiveMerge merge,
Object object,
Object merged) |
| Modifier and Type | Method and Description |
|---|---|
Object |
OverwritingUnknownResolver.resolve(RecursiveMerge merge,
Object object,
Object merged) |
Object |
OverwritingUnknownResolver.resolve(RecursiveMerge merge,
Object object,
Object merged) |
Object |
OverwritingUnknownResolver.resolve(RecursiveMerge merge,
Object object,
Object merged) |
Object |
ExceptionUnknownResolver.resolve(RecursiveMerge merge,
Object object,
Object merged) |
Object |
ExceptionUnknownResolver.resolve(RecursiveMerge merge,
Object object,
Object merged) |
Object |
ExceptionUnknownResolver.resolve(RecursiveMerge merge,
Object object,
Object merged) |
Object |
SkippingUnknownResolver.resolve(RecursiveMerge merge,
Object object,
Object merged) |
Object |
SkippingUnknownResolver.resolve(RecursiveMerge merge,
Object object,
Object merged) |
Object |
SkippingUnknownResolver.resolve(RecursiveMerge merge,
Object object,
Object merged) |
| Modifier and Type | Method and Description |
|---|---|
String |
ClassResource.getClassName()
Returns name of the
Class relative to which resource is located. |
InputStream |
Resource.getInputStream()
Returns new
InputStream for this Resource. |
InputStream |
ClassResource.getInputStream() |
InputStream |
UrlResource.getInputStream() |
InputStream |
FileResource.getInputStream() |
String |
ClassResource.getPath()
Returns resource path near
Class. |
String |
FileResource.getPath()
Returns resource file path.
|
String |
UrlResource.getUrl()
Returns resource
URL address. |
| Constructor and Description |
|---|
ClassResource(Class<?> clazz,
String path)
Constructs new
ClassResource. |
ClassResource(Class<?> clazz,
String path)
Constructs new
ClassResource. |
ClassResource(String className,
String path)
Constructs new
ClassResource. |
ClassResource(String className,
String path)
Constructs new
ClassResource. |
FileResource(File file)
Constructs new
FileResource. |
FileResource(String path)
Constructs new
FileResource. |
ResourceException(String message)
Constructs a new
ResourceException with the specified detail message. |
ResourceException(String message,
Throwable cause)
Constructs a new
ResourceException with the specified detail message and cause. |
ResourceException(String message,
Throwable cause)
Constructs a new
ResourceException with the specified detail message and cause. |
ResourceException(Throwable cause)
Constructs a new
ResourceException with the specified cause. |
UrlResource(String url)
Constructs new
UrlResource. |
UrlResource(URL url)
Constructs new
UrlResource. |
| Modifier and Type | Method and Description |
|---|---|
T |
DisabledCopySupplier.createDisabledCopy()
Returns disabled state copy of implementing class instance.
|
T |
TransparentCopySupplier.createTransparentCopy(float opacity)
Returns semi-transparent state copy of implementing class instance.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
ForegroundBridge.getForeground(P parameters)
Returns foreground
Color based on provided RenderingParameters. |
Icon |
IconBridge.getIcon(P parameters)
Returns
Icon based on provided RenderingParameters. |
String |
TextBridge.getText(P parameters)
Returns text based on provided
RenderingParameters. |
| Modifier and Type | Method and Description |
|---|---|
String |
Version.name()
Returns version name.
|
String |
Version.toString() |
VersionType |
Version.type()
Returns
VersionType. |
| Constructor and Description |
|---|
Version(String name,
int major,
int minor,
int patch,
VersionType type)
Constructs new
Version. |
Version(String name,
int major,
int minor,
int patch,
VersionType type)
Constructs new
Version. |
| Modifier and Type | Method and Description |
|---|---|
String |
GrayscaleFilter.toString() |
| Modifier and Type | Field and Description |
|---|---|
BufferedImage |
GifFrame.bufferedImage
Frame
BufferedImage. |
protected List<GifFrame> |
GifIcon.frames
|
protected List<FrameChangeListener> |
GifIcon.listeners
List of FrameChangeListeners. |
| Modifier and Type | Method and Description |
|---|---|
GifIcon |
GifIcon.createDisabledCopy()
Returns copy of this
GifIcon with only first frame made look disabled. |
GifFrame |
GifFrame.createDisabledCopy()
Returns copy of this
GifFrame with GifFrame.bufferedImage made look disabled. |
GifIcon |
GifIcon.createTransparentCopy(float opacity)
Returns copy of this
GifIcon with only first frame made semi-transparent. |
GifFrame |
GifFrame.createTransparentCopy(float opacity)
Returns copy of this
GifFrame with GifFrame.bufferedImage made semi-transparent. |
BufferedImage |
GifIcon.getDisplayedImage()
Returns currently displayed
BufferedImage. |
GifFrame |
GifIcon.getFrame(int index)
Returns
GifFrame at the specified index. |
List<GifFrame> |
GifIcon.getFrames()
|
| Modifier and Type | Method and Description |
|---|---|
void |
GifIcon.addFrameChangeListener(FrameChangeListener listener)
Adds specified
FrameChangeListener. |
void |
FrameChangeListener.frameChanged(GifIcon icon,
int index,
GifFrame frame)
Informs about
GifIcon frame change. |
void |
FrameChangeListener.frameChanged(GifIcon icon,
int index,
GifFrame frame)
Informs about
GifIcon frame change. |
void |
GifIcon.removeFrameChangeListener(FrameChangeListener listener)
Removes specified
FrameChangeListener. |
| Constructor and Description |
|---|
GifFrame(BufferedImage bufferedImage,
int delay)
Constructs new
GifFrame. |
GifIcon(GifFrame... frames)
Constructs new
GifIcon. |
GifIcon(InputStream inputStream)
Constructs new
GifIcon. |
GifIcon(List<GifFrame> frames)
Constructs new
GifIcon. |
GifIcon(Resource resource)
Constructs new
GifIcon. |
| Modifier and Type | Field and Description |
|---|---|
static Object[] |
LM.emptyData
Empty language data.
|
protected Locale |
Language.locale
|
| Modifier and Type | Method and Description |
|---|---|
static Locale |
LanguageUtils.fromString(String locale)
|
static String |
LM.get(String key,
Object... data)
Returns text for the specified language key from this
Language. |
String |
Language.get(String key,
Object... data)
Returns text for the specified language key from this
Language. |
List<Locale> |
LanguageManager.getAllLocales()
|
static Dictionary |
LanguageManager.getDictionaries()
Returns
Dictionary containing all registered Dictionarys. |
Dictionary |
Language.getDictionaries()
Returns
Dictionary containing all registered Dictionarys. |
static Language |
LanguageManager.getLanguage()
Returns currently used
Language. |
static Language |
LM.getLanguage()
Returns specific
Language instance currently used by this bridge class. |
static Supplier<Language> |
LM.getLanguageSupplier()
|
static String |
LanguageManager.getLanguageTitle(Language language)
|
static Locale |
LanguageManager.getLocale()
Returns currently used
Locale. |
static Locale |
LM.getLocale()
|
Locale |
Language.getLocale()
|
static String |
LanguageManager.getLocaleTitle(Locale locale)
|
static String |
LM.getState(String key,
String state,
Object... data)
Returns text for the specified language key and state from this
Language. |
String |
Language.getState(String key,
String state,
Object... data)
Returns text for the specified language key and state from this
Language. |
static List<Locale> |
LanguageManager.getSupportedLocales()
|
static List<Locale> |
LanguageManager.getSupportedLocales(List<Locale> locales)
|
static Locale |
LanguageUtils.getSystemLocale()
Returns system
Locale. |
String |
Language.toString() |
static String |
LanguageUtils.toString(Locale locale)
|
| Modifier and Type | Method and Description |
|---|---|
static void |
LanguageManager.addDictionary(Dictionary dictionary)
Adds new
Dictionary. |
static void |
LanguageManager.addDictionaryListener(DictionaryListener listener)
Adds new
DictionaryListener. |
static void |
LanguageManager.addDictionaryListener(JComponent component,
DictionaryListener listener)
Adds new
LanguageListener. |
static void |
LanguageManager.addDictionaryListener(JComponent component,
DictionaryListener listener)
Adds new
LanguageListener. |
static void |
LanguageManager.addLanguageListener(JComponent component,
LanguageListener listener)
Adds new
LanguageListener. |
static void |
LanguageManager.addLanguageListener(JComponent component,
LanguageListener listener)
Adds new
LanguageListener. |
static void |
LanguageManager.addLanguageListener(LanguageListener listener)
Adds new
LanguageListener. |
void |
DictionaryListener.dictionaryAdded(Dictionary dictionary)
Notifies when new
Dictionary is added. |
void |
DictionaryListener.dictionaryRemoved(Dictionary dictionary)
Notifies when
Dictionary was removed. |
static Locale |
LanguageUtils.fromString(String locale)
|
static String |
LM.get(String key,
Object... data)
Returns text for the specified language key from this
Language. |
String |
Language.get(String key,
Object... data)
Returns text for the specified language key from this
Language. |
static String |
LanguageManager.getLanguageTitle(Language language)
|
static String |
LanguageManager.getLocaleTitle(Locale locale)
|
static String |
LM.getState(String key,
String state,
Object... data)
Returns text for the specified language key and state from this
Language. |
String |
Language.getState(String key,
String state,
Object... data)
Returns text for the specified language key and state from this
Language. |
static List<Locale> |
LanguageManager.getSupportedLocales(List<Locale> locales)
|
static boolean |
LanguageManager.isCurrentLanguage(Language language)
Returns whether the specified
Language is currently used or not. |
static boolean |
LanguageManager.isCurrentLocale(Locale locale)
Returns whether the specified
Locale is currently used or not. |
static boolean |
LanguageManager.isSuportedLanguage(Language language)
Returns whether or not specified
Language is supported. |
static boolean |
LanguageManager.isSuportedLocale(Locale locale)
Returns whether or not specified
Locale is supported. |
void |
LanguageListener.languageChanged(Language oldLanguage,
Language newLanguage)
Notifies when current
Language was changed within LanguageManager. |
void |
LanguageListener.languageChanged(Language oldLanguage,
Language newLanguage)
Notifies when current
Language was changed within LanguageManager. |
void |
LanguageLocaleUpdater.languageChanged(Language oldLanguage,
Language newLanguage) |
void |
LanguageLocaleUpdater.languageChanged(Language oldLanguage,
Language newLanguage) |
static void |
LanguageManager.removeDictionary(Dictionary dictionary)
Removes existing
Dictionary. |
static void |
LanguageManager.removeDictionaryListener(DictionaryListener listener)
Removes
DictionaryListener. |
static void |
LanguageManager.removeDictionaryListener(JComponent component,
DictionaryListener listener)
Removes
LanguageListener. |
static void |
LanguageManager.removeDictionaryListener(JComponent component,
DictionaryListener listener)
Removes
LanguageListener. |
static void |
LanguageManager.removeLanguageListener(JComponent component,
LanguageListener listener)
Removes
LanguageListener. |
static void |
LanguageManager.removeLanguageListener(JComponent component,
LanguageListener listener)
Removes
LanguageListener. |
static void |
LanguageManager.removeLanguageListener(LanguageListener listener)
Removes
LanguageListener. |
static void |
LanguageManager.setLanguage(Language language)
Sets currently used
Language. |
static void |
LM.setLanguageSupplier(Supplier<Language> supplier)
|
static void |
LanguageManager.setLocale(Locale locale)
Sets currently used
Locale. |
static String |
LanguageUtils.toString(Locale locale)
|
| Constructor and Description |
|---|
Language(Locale locale)
|
| Modifier and Type | Method and Description |
|---|---|
List<Locale> |
Dictionary.getAllLocales()
|
List<Dictionary> |
Dictionary.getDictionaries()
|
String |
Dictionary.getId() |
String |
Record.getKey()
Returns
Record key within its Dictionary. |
Set<String> |
Dictionary.getKeys()
|
Locale |
Value.getLocale()
|
List<Record> |
Dictionary.getRecords()
|
List<Locale> |
Dictionary.getSupportedLocales()
|
String |
Text.getText(Object... data)
Returns parsed
Text.text or raw contents depending on provided data. |
List<Text> |
Value.getTexts()
|
List<TranslationInformation> |
Dictionary.getTranslations()
Returns
List of TranslationInformations contained in this dictionary. |
List<Value> |
Record.getValues()
|
List<Value> |
Record.getValues(Locale locale)
|
String |
Record.toString() |
String |
Text.toString() |
String |
Dictionary.toString() |
String |
Value.toString() |
String |
Record.toString(boolean boldKey)
Returns
Record text representation. |
| Modifier and Type | Method and Description |
|---|---|
void |
Dictionary.addDictionary(Dictionary dictionary)
Adds new child
Dictionary. |
void |
Dictionary.addRecord(Record record)
Adds new
Record into this Dictionary and returns it. |
void |
Value.addText(Text text)
|
void |
Dictionary.addTranslation(TranslationInformation translation)
Adds
TranslationInformation for this Dictionary. |
void |
Record.addValue(Value value)
|
protected void |
Record.collectAllCodes(List<String> codes)
Collects all language codes from this
Record. |
protected void |
Record.collectAllLocales(List<Locale> locales)
|
Record |
Dictionary.getRecord(String key,
Locale locale)
Returns
Record for the specified language key. |
Record |
Dictionary.getRecord(String key,
Locale locale)
Returns
Record for the specified language key. |
String |
Text.getText(Object... data)
Returns parsed
Text.text or raw contents depending on provided data. |
TranslationInformation |
Dictionary.getTranslation(Locale locale)
Returns
TranslationInformation for the specified Locale. |
Value |
Record.getValue(Locale locale)
|
List<Value> |
Record.getValues(Locale locale)
|
boolean |
Record.hasValue(Locale locale)
|
void |
Dictionary.removeDictionary(Dictionary dictionary)
Removes child
Dictionary. |
void |
Dictionary.removeRecord(Record record)
Removes
Record from this Dictionary. |
void |
Dictionary.removeRecord(String key)
Removes
Record with the specified key from this Dictionary. |
void |
Value.removeText(Text text)
|
void |
Record.removeValue(Value value)
|
void |
Record.setKey(String key)
Sets
Record key within its Dictionary. |
void |
Value.setLocale(Locale locale)
|
void |
Text.setText(String text)
Sets translation text.
|
void |
Value.setTexts(List<Text> texts)
|
void |
Record.setValues(List<Value> values)
|
| Constructor and Description |
|---|
Dictionary(InputStream inputStream)
Loads
Dictionary from the specified InputStream. |
Dictionary(Resource resource)
Loads
Dictionary from the specified Resource. |
Record(String key)
Constructs new
Record. |
Record(String key,
List<Value> values)
Constructs new
Record. |
Record(String key,
List<Value> values)
Constructs new
Record. |
Record(String key,
Value... values)
Constructs new
Record. |
Record(String key,
Value... values)
Constructs new
Record. |
Text(String text)
Constructs new
Text with default state and specified translation text. |
Text(String text,
String state)
Constructs new
Text with the specified state and translation text. |
Text(String text,
String state,
int mnemonic)
Constructs new
Text with the specified state and translation text. |
Value(Locale locale)
Contructs new
Value. |
Value(Locale locale,
List<Text> texts)
Contructs new
Value. |
Value(Locale locale,
List<Text> texts)
Contructs new
Value. |
Value(Locale locale,
Text... texts)
Contructs new
Value. |
Value(Locale locale,
Text... texts)
Contructs new
Value. |
| Modifier and Type | Field and Description |
|---|---|
protected String |
TaskGroup.id
This
TaskGroup identifier. |
protected ThreadFactory |
TaskGroup.threadFactory
ThreadFactory used to spawn Threads for executing tasks. |
| Modifier and Type | Method and Description |
|---|---|
<V> Future<V> |
TaskGroup.execute(Callable<V> callable)
Executes specified
Callable. |
Future<?> |
TaskGroup.execute(Runnable runnable)
Executes specified
Runnable. |
static <V> Future<V> |
TaskManager.execute(String groupId,
Callable<V> callable)
|
static Future<?> |
TaskManager.execute(String groupId,
Runnable runnable)
|
protected ExecutorService |
TaskGroup.executorService()
Returns
ExecutorService that can be used to execute tasks according to this TaskGroup settings. |
static TaskGroup |
TaskManager.getGroup(String groupId)
Returns
TaskGroup with the specified identifier. |
String |
TaskGroup.getId() |
| Modifier and Type | Method and Description |
|---|---|
static void |
TaskManager.configureGroup(TaskGroup group)
Configures existing
TaskGroup. |
<V> Future<V> |
TaskGroup.execute(Callable<V> callable)
Executes specified
Callable. |
Future<?> |
TaskGroup.execute(Runnable runnable)
Executes specified
Runnable. |
static <V> Future<V> |
TaskManager.execute(String groupId,
Callable<V> callable)
|
static <V> Future<V> |
TaskManager.execute(String groupId,
Callable<V> callable)
|
static Future<?> |
TaskManager.execute(String groupId,
Runnable runnable)
|
static Future<?> |
TaskManager.execute(String groupId,
Runnable runnable)
|
static boolean |
TaskManager.exists(String groupId)
Returns whether or not
TaskGroup with the specified identifier already exists. |
static boolean |
TaskManager.exists(TaskGroup group)
Returns whether or not specified
TaskGroup already exists. |
static TaskGroup |
TaskManager.getGroup(String groupId)
Returns
TaskGroup with the specified identifier. |
static void |
TaskManager.registerGroup(TaskGroup group)
Registers new
TaskGroup. |
static void |
TaskManager.shutdown(String groupId)
Shutdowns
TaskGroup with the specified identifier after finishing all remaining submitted tasks. |
static void |
TaskManager.shutdownNow(String groupId)
Shutdowns
TaskGroup with the specified identifier without finishing any of remaining submitted tasks. |
| Constructor and Description |
|---|
TaskException(String message)
Constructs a new
TaskException with the specified detail message. |
TaskException(String message,
Throwable cause)
Constructs a new
TaskException with the specified detail message and cause. |
TaskException(String message,
Throwable cause)
Constructs a new
TaskException with the specified detail message and cause. |
TaskException(Throwable cause)
Constructs a new
TaskException with the specified cause. |
TaskGroup(String id)
Constructs new
TaskGroup. |
TaskGroup(String id,
int maxThreadsCount)
Constructs new
TaskGroup. |
TaskGroup(String id,
ThreadFactory threadFactory)
Constructs new
TaskGroup. |
TaskGroup(String id,
ThreadFactory threadFactory)
Constructs new
TaskGroup. |
TaskGroup(String id,
ThreadFactory threadFactory,
int maxThreadsCount)
Constructs new
TaskGroup. |
TaskGroup(String id,
ThreadFactory threadFactory,
int maxThreadsCount)
Constructs new
TaskGroup. |
| Modifier and Type | Field and Description |
|---|---|
static String |
HtmlUtils.DEFAULT_LINE_SEPARATOR
Default line separator.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
FileUtils.appropriateFileName(String text)
Returns appropriate file name based on provided text.
|
static String |
FileUtils.appropriateFileName(String text,
String replacement)
Returns appropriate file name based on provided text.
|
static <T> HashSet<T> |
CollectionUtils.asHashSet(Collection<T> data)
Returns data converted into
HashSet. |
static <T> HashSet<T> |
CollectionUtils.asHashSet(T... data)
Returns data converted into
HashSet. |
static ArrayList<Boolean> |
CollectionUtils.asList(boolean[] data)
Returns booleans converted into list.
|
static ArrayList<Byte> |
CollectionUtils.asList(byte[] data)
Returns bytes converted into list.
|
static ArrayList<Character> |
CollectionUtils.asList(char[] data)
Returns characters converted into list.
|
static ArrayList<Double> |
CollectionUtils.asList(double[] data)
Returns doubles converted into list.
|
static ArrayList<Float> |
CollectionUtils.asList(float[] data)
Returns floats converted into list.
|
static ArrayList<Integer> |
CollectionUtils.asList(int[] data)
Returns integers converted into list.
|
static <T> ArrayList<T> |
CollectionUtils.asList(Iterator<T> data)
Returns data converted into list.
|
static ArrayList<Long> |
CollectionUtils.asList(long[] data)
Returns longs converted into list.
|
static ArrayList<Short> |
CollectionUtils.asList(short[] data)
Returns shorts converted into list.
|
static <T> ArrayList<T> |
CollectionUtils.asList(T... data)
Returns data converted into list.
|
static <T> ArrayList<T> |
CollectionUtils.asNonNullList(T... data)
Returns non-null data converted into list.
|
static <T> Vector<T> |
CollectionUtils.asVector(T... data)
Returns a vector of objects converted from data.
|
static <T> List<T> |
ReflectUtils.callMethods(List<?> objects,
String methodName,
Object... arguments)
Returns list of results returned by called methods.
|
static Object[] |
ReflectUtils.callMethods(Object[] objects,
String methodName,
Object... arguments)
Returns an array of results returned by called methods.
|
static <T> List<T> |
ReflectUtils.callMethodsSafely(List<?> objects,
String methodName,
Object... arguments)
Returns list of results returned by called methods.
|
static Object[] |
ReflectUtils.callMethodsSafely(Object[] objects,
String methodName,
Object... arguments)
Returns an array of results returned by called methods.
|
static String |
FileUtils.canonicalPath(File file)
Returns file canonical path if its possible or absolute path otherwise.
|
static String |
FileUtils.computeMD5(InputStream inputStream)
Returns MD5 for the data provided by
InputStream. |
static String |
FileUtils.computeMD5(InputStream inputStream,
int bufferLength)
Returns MD5 for the data provided by
InputStream and uses a buffer of the specified length. |
static String |
FileUtils.computeMD5(Resource resource)
Returns MD5 for specified
File content. |
static String |
FileUtils.computeMD5(Resource resource,
int bufferLength)
Returns MD5 for specified
File content and uses a buffer of the specified length. |
static String |
FileUtils.computeMD5(String data)
Returns MD5 for specified
String data. |
static String |
FileUtils.computeMD5(String data,
int bufferLength)
Returns MD5 for specified
String data and uses a buffer of the specified length. |
static <K,V> HashMap<K,V> |
MapUtils.copyHashMap(HashMap<K,V> map)
Returns copied HashMap.
|
static <K,V> LinkedHashMap<K,V> |
MapUtils.copyLinkedHashMap(LinkedHashMap<K,V> map)
Returns copied LinkedHashMap.
|
static <K,V> HashMap<K,V> |
MapUtils.copyMap(Map<K,V> map)
Returns copied Map.
|
static <T> ArrayList<T> |
CollectionUtils.copySubList(List<T> list,
int fromIndex,
int toIndex)
Returns sub list with copied values.
|
static BufferedImage |
ImageUtils.copyToBufferedImage(BufferedImage bufferedImage)
Returns
BufferedImage containing a copy of BufferedImage. |
static BufferedImage |
ImageUtils.copyToBufferedImage(Icon icon)
Returns
BufferedImage containing a copy of currently displayed Icon frame. |
static BufferedImage |
ImageUtils.copyToBufferedImage(Image image)
Returns
BufferedImage containing a copy of Image. |
static <T> T[] |
ArrayUtils.createArray(Class<T> classType,
int length)
Returns new array with the specified component class type.
|
static <T> T[] |
ArrayUtils.createArray(T[] array,
int length)
Returns new array with the component class type from the specified array.
|
static BufferedImage |
ImageUtils.createCompatibleImage(BufferedImage bufferedImage)
Returns new empty
BufferedImage compatible with default screen GraphicsConfiguration. |
static BufferedImage |
ImageUtils.createCompatibleImage(int width,
int height)
Returns new
BufferedImage compatible with default screen GraphicsConfiguration. |
static BufferedImage |
ImageUtils.createCompatibleImage(int width,
int height,
int transparency)
Returns new
BufferedImage compatible with default screen GraphicsConfiguration. |
static BufferedImage |
ImageUtils.createDisabledCopy(BufferedImage bufferedImage)
Returns
BufferedImage that is copy of the specified BufferedImage made look disabled. |
static Icon |
ImageUtils.createDisabledCopy(Icon icon)
|
static BufferedImage |
ImageUtils.createDisabledCopy(Image image)
Returns
BufferedImage that is copy of the specified Image made look disabled. |
static FileDescription |
FileUtils.createFileDescription(File file,
String fileSize)
Returns complete file description.
|
static BufferedImage |
ImageUtils.createImageThumbnail(BufferedImage bufferedImage,
Dimension maxSize)
Returns thumbnail
BufferedImage of the specified BufferedImage. |
static BufferedImage |
ImageUtils.createImageThumbnail(BufferedImage bufferedImage,
int maxSize)
Returns thumbnail
BufferedImage of the specified BufferedImage. |
static BufferedImage |
ImageUtils.createImageThumbnail(BufferedImage bufferedImage,
int maxWidth,
int maxHeight)
Returns thumbnail
BufferedImage of the specified BufferedImage. |
static BufferedImage |
ImageUtils.createInnerShadowImage(int width,
Shape shape,
int shadowWidth,
float opacity)
Returns shadow image based on provided shape.
|
static BufferedImage |
ImageUtils.createShadowImage(int width,
int height,
Shape shape,
int shadowWidth,
float opacity,
boolean clip)
Returns shadow image based on provided shape.
|
static String |
TextUtils.createString(char character,
int length)
Creates new string filled with specified amount of same characters.
|
static String |
TextUtils.createString(String character,
int length)
Creates new string filled with specified amount of same characters.
|
static BufferedImage |
ImageUtils.createTransparentCopy(BufferedImage bufferedImage,
float opacity)
Returns
BufferedImage that is copy of the specified BufferedImage made semi-transparent. |
static Icon |
ImageUtils.createTransparentCopy(Icon icon,
float opacity)
|
static BufferedImage |
ImageUtils.createTransparentCopy(Image image,
float opacity)
Returns
BufferedImage that is copy of the specified Image made semi-transparent. |
static Date |
TimeUtils.currentDate()
Returns current system date.
|
static String |
WebUtils.decodeUrl(String url)
Returns decoded url path.
|
static <T> List<T> |
CollectionUtils.distinct(List<T> list)
Removes non-distinct
List elements. |
static File |
FileUtils.downloadFile(String url,
File dstFile)
Downloads file from the specified url to destination file and returns it if download succeed.
|
static File |
FileUtils.downloadFile(String url,
File dstFile,
boolean encodeUrl,
String contentType,
int timeout)
Downloads file from the specified url to destination file and returns it if download succeed.
|
static File |
FileUtils.downloadFile(String url,
File dstFile,
boolean encodeUrl,
String contentType,
int timeout,
FileDownloadListener listener)
Downloads file from the specified url to destination file and returns it if download succeed.
|
static File |
FileUtils.downloadFile(String url,
File dstFile,
FileDownloadListener listener)
Downloads file from the specified url to destination file and returns it if download succeed.
|
static File |
FileUtils.downloadFile(String url,
String dst,
boolean encodeUrl,
String contentType,
int timeout)
Downloads file from the specified url to destination file and returns it if download succeed.
|
static File |
FileUtils.downloadFile(String url,
String dst,
boolean encodeUrl,
String contentType,
int timeout,
FileDownloadListener listener)
Downloads file from the specified url to destination file and returns it if download succeed.
|
static String |
WebUtils.encodeUrl(String url)
Returns encoded url path.
|
static <E extends Enum<E>> |
TextUtils.enumStringToList(String enumString,
Class<E> enumClass)
Converts string with list of enumeration constants into real list of enumeration constants and returns it.
|
static <E extends Enum<E>> |
TextUtils.enumStringToList(String enumString,
Class<E> enumClass,
String separator)
Converts string with list of enumeration constants into real list of enumeration constants and returns it.
|
static Rectangle |
GeometryUtils.expand(Rectangle rect,
int expansion)
Returns rectangle expanded in four directions for the specified value.
|
static Rectangle |
GeometryUtils.expand(Rectangle rect,
int top,
int left,
int bottom,
int right)
Returns rectangle expanded in four directions for the specified values.
|
static <T> List<T> |
CollectionUtils.fillList(int size,
Function<Integer,T> indexMapper)
|
static <T> ArrayList<T> |
CollectionUtils.filter(Collection<T> collection,
Filter<T>... filters)
Returns list of elements filtered from collection.
|
static <T> ArrayList<T> |
CollectionUtils.filter(Collection<T> collection,
Filter<T> filter)
Returns list of elements filtered from collection.
|
static List<File> |
FileUtils.filterFiles(Collection<File> files,
AbstractFileFilter fileFilter)
Returns filtered files list.
|
static List<File> |
FileUtils.filterFiles(Collection<File> files,
Filter<File> fileFilter)
Returns filtered files list.
|
static List<File> |
FileUtils.findFilesRecursively(File dir,
FileFilter filter)
Returns list of files accepted by file filter found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(File dir,
FileFilter filter,
List<File> found)
Returns list of files accepted by file filter found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(File dir,
List<String> extension)
Returns list of files with specified extensions found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(File dir,
List<String> extension,
boolean withDot)
Returns list of files with specified extensions found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(File dir,
List<String> extension,
boolean withDot,
List<File> found)
Returns list of files with specified extensions found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(String dir,
FileFilter filter)
Returns list of files accepted by file filter found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(String dir,
FileFilter filter,
List<File> found)
Returns list of files accepted by file filter found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(String dir,
List<String> extension)
Returns list of files with specified extensions found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(String dir,
List<String> extension,
boolean withDot)
Returns list of files with specified extensions found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(String dir,
List<String> extension,
boolean withDot,
List<File> found)
Returns list of files with specified extensions found in the specified directory and its subdirectories.
|
static Integer |
TextUtils.findFirstNumber(String text)
Returns first number found in text.
|
static Point |
GeometryUtils.findMiddleLineIntersection(Rectangle rect,
Point outer)
Returns intersection point of the rectangle and the line going from the middle of that rectangle to the outer point.
|
static String |
TextUtils.format(String text,
Object... objects)
Returns message formatted with common string representations of the provided objects.
|
static String |
TimeUtils.formatCurrentDate(String format)
Returns formatted representation of current date.
|
static String |
TimeUtils.formatDate(String format,
Date date)
Returns formatted representation of specified date.
|
static Color |
ColorUtils.fromHex(String hex)
Returns color decoded from a hex color string.
|
static Color |
ColorUtils.fromRGBA(String rgba)
Returns
Color decoded from RGBA color string. |
static Color |
ColorUtils.fromRGBA(String rgba,
String separator)
Returns
Color decoded from RGBA color string. |
static String |
TextUtils.generateId()
Returns random ID with default prefix and suffix.
|
static String |
TextUtils.generateId(int length)
Returns randomly generated ID part with specified length.
|
static String |
TextUtils.generateId(String prefix)
Returns random ID with specified prefix and default suffix.
|
static String |
TextUtils.generateId(String prefix,
String suffix)
Returns random ID with specified prefix and suffix.
|
static String |
NetUtils.getAddress(URL url)
Returns address represented by the specified URL object.
|
static String |
FileUtils.getAvailableName(File dir,
String name)
Returns available file name in the specified directory and which is similar the specified name.
|
static String |
FileUtils.getAvailableName(List<String> existingNames,
String name)
Returns available file name that is not contained in the existing names list.
|
static String |
FileUtils.getAvailableName(String dir,
String name)
Returns available file name in the specified directory and which is similar the specified name.
|
static String |
NetUtils.getBaseAddress(String address)
Returns base address for the specified complete address.
|
static Rectangle |
CoreSwingUtils.getBoundsOnScreen(Component component,
boolean visibleOnly)
Returns
Component bounds on screen, either only visible or complete ones. |
static <T> Class<T> |
ReflectUtils.getClass(String canonicalName)
Returns class for the specified canonical name.
|
static String |
ReflectUtils.getClassFileName(Class classType)
Returns class name with ".class" extension in the end.
|
static String |
ReflectUtils.getClassFileName(Object classObject)
Returns class name with ".class" extension in the end.
|
static String |
ReflectUtils.getClassName(Class classType)
Returns class name.
|
static String |
ReflectUtils.getClassName(Object classObject)
Returns class name.
|
static String |
ReflectUtils.getCompleteClassName(Class classType)
Returns complete class name that includes enclosing class name if one exists.
|
static String |
ReflectUtils.getCompleteClassName(Object classObject)
Returns complete class name that includes enclosing class name if one exists.
|
static GraphicsDevice |
SystemUtils.getDefaultScreenDevice()
Returns default screen device.
|
static Rectangle |
SystemUtils.getDeviceBounds(Component component,
boolean applyScreenInsets)
Returns screen bounds within which most part of the specified component is placed.
|
static Rectangle |
SystemUtils.getDeviceBounds(GraphicsConfiguration gc,
boolean applyScreenInsets)
Returns screen device bounds.
|
static Rectangle |
SystemUtils.getDeviceBounds(GraphicsDevice device,
boolean applyScreenInsets)
Returns screen device bounds.
|
static Rectangle |
SystemUtils.getDeviceBounds(Point location,
boolean applyScreenInsets)
Returns screen bounds for the specified location.
|
static Rectangle |
SystemUtils.getDeviceBounds(Rectangle bounds,
boolean applyScreenInsets)
Returns screen bounds within which most part of the specified bounds is placed.
|
static List<Rectangle> |
SystemUtils.getDevicesBounds(boolean applyScreenInsets)
Returns screen device bounds for all screen devices available.
|
static Icon |
ImageUtils.getDisabledCopy(Icon icon)
Returns new or cached copy of specified
Icon made look disabled. |
static File[] |
FileUtils.getDiskRoots()
Returns array of available system disks.
|
static String |
FileUtils.getDisplayFileCreationDate(File file)
Returns file modification date to display.
|
static String |
FileUtils.getDisplayFileModificationDate(File file)
Returns file modification date to display.
|
static String |
FileUtils.getDisplayFileName(File file)
Returns file name to display.
|
static String |
FileUtils.getDisplayFileSize(File file)
Returns file size to display.
|
static String |
FileUtils.getDisplayFileSize(File file,
int digits)
Returns file size to display.
|
static Color |
ImageUtils.getDominantColor(BufferedImage image)
Returns dominant
Color for the specified BufferedImage. |
static Date |
TimeUtils.getEndOfDay(Date date)
Returns end-of-day date.
|
static Field |
ReflectUtils.getField(Class<?> classType,
String fieldName)
Returns specified class field.
|
static String |
FileUtils.getFileExtPart(File file,
boolean withDot)
Returns file extension either with or without dot.
|
static String |
FileUtils.getFileExtPart(String name,
boolean withDot)
Returns file extension either with or without dot.
|
static String |
ZipUtils.getFileLocation(ZipEntry zipEntry)
Returns file location for the specified zip entry.
|
static String |
ZipUtils.getFileName(ZipEntry zipEntry)
Returns file name for the specified zip entry.
|
static String |
FileUtils.getFileNamePart(File file)
Returns file name without extension.
|
static String |
FileUtils.getFileNamePart(String name)
Returns file name without extension.
|
static List<File> |
FileUtils.getFilePath(File file)
Returns list of files contained in path of the specified file.
|
static String |
FileUtils.getFileSizeString(long size,
int digits)
Returns file size to display.
|
static String |
FileUtils.getFileTypeDescription(File file)
Returns file type description.
|
static GraphicsConfiguration |
SystemUtils.getGraphicsConfiguration()
Returns default screen GraphicsConfiguration.
|
static GraphicsDevice |
SystemUtils.getGraphicsDevice(Point location)
Returns screen device for the specified location.
|
static GraphicsDevice |
SystemUtils.getGraphicsDevice(Rectangle bounds)
Returns screen device where most part of specified bounds is placed.
|
static GraphicsDevice |
SystemUtils.getGraphicsDevice(Window window)
Returns screen device for the specified window.
|
static List<GraphicsDevice> |
SystemUtils.getGraphicsDevices()
Returns list of available screen devices.
|
static GraphicsEnvironment |
SystemUtils.getGraphicsEnvironment()
Returns default GraphicsEnvironment.
|
static String |
NetUtils.getHost(String address)
Returns host for the specified address.
|
static String |
ReflectUtils.getJavaClassName(Class classType)
Returns class name with ".java" extension in the end.
|
static String |
ReflectUtils.getJavaClassName(Object classObject)
Returns class name with ".java" extension in the end.
|
static String |
SystemUtils.getJavaName()
Returns java vm name.
|
static String |
SystemUtils.getJavaVendor()
Returns java vm vendor.
|
static JavaVersion |
SystemUtils.getJavaVersion()
Returns java version application is running on.
|
static String |
SystemUtils.getJavaVersionString()
Returns java version.
|
static String |
SystemUtils.getJreArch()
Returns JRE architecture.
|
static String |
SystemUtils.getJreArchName()
Returns JRE architecture name.
|
static Rectangle |
SystemUtils.getMaximizedBounds(Frame frame)
Returns maximized bounds for the screen where specified frame is displayed.
|
static Rectangle |
SystemUtils.getMaximizedEastBounds(Frame frame)
Returns maximized bounds for the east half of the screen where specified frame is displayed.
|
static Rectangle |
SystemUtils.getMaximizedWestBounds(Frame frame)
Returns maximized bounds for the west half of the screen where specified frame is displayed.
|
static Point |
CoreSwingUtils.getMouseLocation()
Returns mouse location on the screen.
|
static Point |
CoreSwingUtils.getMouseLocation(Component component)
Returns mouse location on the screen relative to specified component.
|
static Rectangle |
GeometryUtils.getNonNullContainingRect(List<Point> points)
Returns rectangle containing all specified points.
|
static Rectangle |
GeometryUtils.getNonNullContainingRect(Point... points)
Returns rectangle containing all specified points.
|
static Rectangle |
GeometryUtils.getNonNullContainingRect(Rectangle... rectangles)
Returns rectangle containing all specified rectangles.
|
static Rectangle |
GeometryUtils.getNonNullContainingRect(Rectangle r1,
Rectangle r2)
Returns rectangle containing two others.
|
static JRootPane |
CoreSwingUtils.getNonNullRootPane(Component component)
Returns root pane for the specified component or
null if it doesn't exist. |
static Window |
CoreSwingUtils.getNonNullWindowAncestor(Component component)
|
static String |
SystemUtils.getOsArch()
Returns OS architecture.
|
static Icon |
SystemUtils.getOsIcon()
Returns OS icon.
|
static Icon |
SystemUtils.getOsIcon(boolean color)
Returns colored or grayscale OS icon.
|
static Icon |
SystemUtils.getOsIcon(int size)
Returns OS icon of specified size if such exists; returns 16x16 icon otherwise.
|
static Icon |
SystemUtils.getOsIcon(int size,
boolean color)
Returns colored or grayscale OS icon of specified size if such exists; returns 16x16 icon otherwise.
|
static String |
SystemUtils.getOsName()
Returns OS name.
|
static String |
SystemUtils.getOsSite()
Returns OS vendor site address.
|
static SystemType |
SystemUtils.getOsType()
Returns OS type.
|
static String |
SystemUtils.getOsVersion()
Returns OS version.
|
static String |
HtmlUtils.getPlainText(String html)
Returns plain text extracted from the specified HTML.
|
static String |
HtmlUtils.getPlainText(String html,
String lineSeparator)
Returns plain text extracted from the specified HTML.
|
static PointerInfo |
CoreSwingUtils.getPointerInfo()
Returns pointer information.
|
static List<JPopupMenu> |
CoreSwingUtils.getPopupMenus()
Returns
List of displayed JPopupMenus. |
static String |
FileUtils.getProperFileName(String name)
Returns a valid for any file system file name based on specified name.
|
static Rectangle |
CoreSwingUtils.getRelativeBounds(Component component,
Component relativeTo)
Returns component bounds relative to another component.
|
static Point |
CoreSwingUtils.getRelativeLocation(Component component,
Component relativeTo)
Returns component location relative to another component.
|
static String |
FileUtils.getRelativePath(File file,
File folder)
Returns file path relative to specified folder or canonical path if file is not inside that folder.
|
static String |
TextUtils.getSettingsKey(Object... settings)
Returns settings combined into a single key.
|
static String |
FileUtils.getShortFileName(String name)
Returns shortened file name.
|
static String |
FileUtils.getShortFileName(String name,
int length)
Returns shortened to the specified length file name.
|
static String |
SystemUtils.getShortOsName()
Returns short OS name.
|
static String |
ExceptionUtils.getStackTrace(StackTraceElement[] trace)
Returns String representation of the specified stack trace.
|
static String |
ExceptionUtils.getStackTrace(Throwable throwable)
Returns the stack trace from a Throwable as a String.
|
static Date |
TimeUtils.getStartOfDay(Date date)
Returns start-of-day date.
|
static List<String> |
FileUtils.getSubPaths(File dir)
Returns list of all file paths in this directory and all subdirectories.
|
static List<String> |
FileUtils.getSubPaths(File dir,
String path)
Returns list of all file paths in this directory and all subdirectories.
|
static List<String> |
FileUtils.getSubPaths(File dir,
String path,
List<String> paths)
Returns list of all file paths in this directory and all subdirectories.
|
static List<String> |
FileUtils.getSubPaths(String dir)
Returns list of all file paths in this directory and all subdirectories.
|
static String |
TextUtils.getSystemLineSeparator()
Returns preferred system text lines separator.
|
static File[] |
FileUtils.getSystemRoots()
Returns array of available file system roots.
|
static File |
FileUtils.getSystemTemp()
Returns system directory for temporary files.
|
static String |
FileUtils.getSystemTempPath()
Returns path to system directory for temporary files.
|
static Icon |
ImageUtils.getTransparentCopy(Icon icon,
float opacity)
Returns new or cached copy of specified
Icon made look disabled. |
static Cursor |
SystemUtils.getTransparentCursor()
Returns fully transparent cursor.
|
static URI |
NetUtils.getURI(String address)
Returns URI for the specified address.
|
static URL |
NetUtils.getURL(String address)
Returns URL for the specified address.
|
static Map<String,List<String>> |
WebUtils.getUrlParameters(String url)
Returns url query parameters.
|
static File |
FileUtils.getUserHome()
Returns user home directory.
|
static String |
FileUtils.getUserHomePath()
Returns path to user home directory.
|
static Rectangle |
CoreSwingUtils.getVisibleRect(Component component)
Returns intersection of the visible rectangles for the component and all of its ancestors.
|
static Insets |
CoreSwingUtils.getWindowDecorationInsets(Window window)
Returns window decoration insets.
|
static File |
FileUtils.getWorkingDirectory()
Returns application working directory.
|
static String |
FileUtils.getWorkingDirectoryPath()
Returns application working directory.
|
static com.thoughtworks.xstream.XStream |
XmlUtils.getXStream()
Returns global XStream instance configured with all required aliases and converters.
|
static Color |
ColorUtils.grayscale(Color color)
Returns grayscale version of the specified
Color. |
static boolean[] |
ArrayUtils.insert(boolean[] array,
int index,
boolean object)
Returns new array with boolean inserted at the specified index.
|
static byte[] |
ArrayUtils.insert(byte[] array,
int index,
byte object)
Returns new array with byte inserted at the specified index.
|
static char[] |
ArrayUtils.insert(char[] array,
int index,
char object)
Returns new array with char inserted at the specified index.
|
static double[] |
ArrayUtils.insert(double[] array,
int index,
double object)
Returns new array with double inserted at the specified index.
|
static float[] |
ArrayUtils.insert(float[] array,
int index,
float object)
Returns new array with float inserted at the specified index.
|
static int[] |
ArrayUtils.insert(int[] array,
int index,
int object)
Returns new array with int inserted at the specified index.
|
static <T> T[] |
ArrayUtils.insert(T[] array,
int index,
T object)
Returns new array with object inserted at the specified index.
|
static Color |
ColorUtils.intermediate(Color color1,
Color color2,
float progress)
|
static List<Integer> |
CollectionUtils.intRange(int from,
int to)
|
static <T> ArrayList<T> |
CollectionUtils.join(Collection<T>... collections)
Returns collection that contains elements from all specified collections.
|
static String |
NetUtils.joinUrlPaths(String part1,
String part2)
Joins two url paths without leaving any unnecessary path separators.
|
static <K,V> ArrayList<K> |
CollectionUtils.keysList(Map<K,V> map)
Returns map keys list.
|
static <T> List<T> |
CollectionUtils.limit(List<T> list,
int limit)
Returns list with limited amount of objects from the initial list.
|
static File[] |
FileUtils.listFiles(File directory)
Returns directory files array or empty array (instead of null) if no files present.
|
static File[] |
FileUtils.listFiles(File directory,
FileFilter fileFilter)
Returns directory files array or empty array (instead of null) if no files present.
|
static File[] |
FileUtils.listFiles(File directory,
Filter<File> fileFilter)
Returns directory files array or empty array (instead of null) if no files present.
|
static BufferedImage |
ImageUtils.loadBufferedImage(InputStream inputStream)
Returns
BufferedImage loaded from the specified InputStream. |
static BufferedImage |
ImageUtils.loadBufferedImage(Resource resource)
Returns
BufferedImage loaded from the specified Resource. |
static BufferedImage |
ImageUtils.loadCompatibleImage(Resource resource)
Returns
BufferedImage loaded from the specified Resource. |
static ImageIcon |
ImageUtils.loadImageIcon(InputStream inputStream)
|
static ImageIcon |
ImageUtils.loadImageIcon(Resource resource)
|
static Point |
CoreSwingUtils.locationOnScreen(Component component)
Returns
Component location on screen. |
static <K,V> HashMap<K,V> |
MapUtils.merge(Map<K,V>... maps)
Merges specified maps into one new map and returns it.
|
static Point |
GeometryUtils.middle(int x1,
int y1,
int x2,
int y2)
Returns middle point between the specified points.
|
static Point |
GeometryUtils.middle(Point p1,
Point p2)
Returns middle point between the specified points.
|
static Point |
GeometryUtils.middle(Rectangle rectangle)
Returns middle point for the specified rectangle.
|
static Point |
GeometryUtils.modify(Point point,
int xMod,
int yMod)
Returns modified point.
|
static <K,V> HashMap<K,V> |
MapUtils.newHashMap(K key,
V value)
Returns newly created HashMap with the specified key and value pair added.
|
static <K,V> HashMap<K,V> |
MapUtils.newHashMap(Map<K,V> data)
Returns newly created HashMap with the specified map data.
|
static <K,V> HashMap<K,V> |
MapUtils.newHashMap(Object... objects)
Returns newly created HashMap with the specified key and value pairs added.
|
static <K,V> LinkedHashMap<K,V> |
MapUtils.newLinkedHashMap(K key,
V value)
Returns newly created LinkedHashMap with the specified key and value pair added.
|
static <K,V> LinkedHashMap<K,V> |
MapUtils.newLinkedHashMap(Object... objects)
Returns newly created LinkedHashMap with the specified key and value pairs added.
|
static <T> List<T> |
CollectionUtils.nonNull(List<T> list)
|
static <K,V> Map<K,V> |
MapUtils.nonNull(Map<K,V> map)
|
static <T> ArrayList<T> |
CollectionUtils.nonNullCopy(Collection<T> collection)
|
static String |
WebUtils.normalizeUrl(String url)
Returns normalized url path.
|
static List<String> |
TextUtils.numbered(String pattern,
int from,
int to)
Returns list of strings based on single pattern parsed using different number values in range.
|
static Color |
ColorUtils.opaque(Color color)
Returns
Color with alpha value set to 255. |
static Resource |
XmlUtils.readResource(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context,
com.thoughtworks.xstream.mapper.Mapper mapper)
Returns
Resource based on the available attributes in the current node. |
static String |
FileUtils.readToString(InputStream inputStream)
Returns content read from the input stream.
|
static String |
FileUtils.readToString(InputStream inputStream,
String encoding)
Returns content read from the input stream.
|
static String |
FileUtils.readToString(Reader reader)
Returns content read from the specified reader.
|
static String |
FileUtils.readToString(Resource resource)
|
static String |
FileUtils.readToString(Resource resource,
String encoding)
|
static boolean[] |
ArrayUtils.remove(boolean[] array,
int index)
Returns new array with the boolean under specified index removed.
|
static byte[] |
ArrayUtils.remove(byte[] array,
int index)
Returns new array with the byte under specified index removed.
|
static char[] |
ArrayUtils.remove(char[] array,
int index)
Returns new array with the char under specified index removed.
|
static double[] |
ArrayUtils.remove(double[] array,
int index)
Returns new array with the double under specified index removed.
|
static float[] |
ArrayUtils.remove(float[] array,
int index)
Returns new array with the float under specified index removed.
|
static int[] |
ArrayUtils.remove(int[] array,
int index)
Returns new array with the int under specified index removed.
|
static <T> T[] |
ArrayUtils.remove(T[] array,
int index)
Returns new array with the object under specified index removed.
|
static <T> T[] |
ArrayUtils.remove(T[] array,
T object)
Returns new array with the specified object removed.
|
static String |
TextUtils.removeFirstLines(String text,
int count)
Returns text with first lines removed.
|
static String |
TextUtils.removeLineBreaks(String text)
Returns text with all line breaks removed.
|
static String |
TextUtils.removeSpacings(String text)
Returns text with all spacings removed.
|
static String |
TextUtils.replace(String text,
int index,
char character)
Returns text with replaced character at the specified index.
|
static String |
TextUtils.replaceAll(String text,
boolean ignoreCase,
String str,
Function<String,String> replacer)
Replaces all occurrences of str found in the specified text with provided text.
|
static String |
TextUtils.requireNonEmpty(String text)
Checks that the specified text is not
null or empty and throws a NullPointerException if it is. |
static String |
TextUtils.requireNonEmpty(String text,
String message)
Checks that the specified text is not
null or empty and throws a NullPointerException if it is. |
static String |
TextUtils.requireNonEmpty(String text,
Supplier<RuntimeException> exceptionSupplier)
Checks that the specified text is not
null or empty and throws a RuntimeException if it is. |
static <T extends Collection<?>> |
CollectionUtils.requireNotEmpty(T collection,
Supplier<RuntimeException> exceptionSupplier)
Checks that the specified
Collection is not empty and throws a customized RuntimeException if it is. |
static ImageIcon |
ImageUtils.rotateIcon180(Icon icon)
|
static ImageIcon |
ImageUtils.rotateIcon90CCW(Icon icon)
|
static ImageIcon |
ImageUtils.rotateIcon90CW(Icon icon)
|
static BufferedImage |
ImageUtils.rotateImage180(BufferedImage bufferedImage)
Returns new
BufferedImage with specified BufferedImage painted on it and rotated 180 degrees. |
static BufferedImage |
ImageUtils.rotateImage180(Image image)
Returns new
BufferedImage with specified Image painted on it and rotated 180 degrees. |
static BufferedImage |
ImageUtils.rotateImage90CCW(BufferedImage bufferedImage)
Returns new
BufferedImage with specified BufferedImage painted on it and rotated 90 degrees counter-clockwise. |
static BufferedImage |
ImageUtils.rotateImage90CCW(Image image)
Returns new
BufferedImage with specified Image painted on it and rotated 90 degrees counter-clockwise. |
static BufferedImage |
ImageUtils.rotateImage90CW(BufferedImage bufferedImage)
Returns new
BufferedImage with specified BufferedImage painted on it and rotated 90 degrees clockwise. |
static BufferedImage |
ImageUtils.rotateImage90CW(Image image)
Returns new
BufferedImage with specified Image painted on it and rotated 90 degrees clockwise. |
static String |
TextUtils.shortenText(String text,
int maxLength,
boolean addDots)
Returns shortened text.
|
static String |
TextUtils.shortenTextEnd(String text,
int maxLength,
boolean addDots)
Returns shortened text.
|
static Color |
ColorUtils.softColor(Color base)
|
static <T> List<T> |
CollectionUtils.sort(List<T> list,
Comparator<T>... comparators)
Sorts
List using the specified Comparators. |
static <T> List<T> |
CollectionUtils.sort(List<T> list,
Comparator<T> comparator)
Sorts
List using the specified Comparator. |
static List<Float> |
TextUtils.stringToFloatList(String string)
Returns a list of float parts split using specified separator.
|
static List<Float> |
TextUtils.stringToFloatList(String string,
String separator)
Returns a list of float parts split using specified separator.
|
static List<Integer> |
TextUtils.stringToIntList(String string)
Returns a list of integer parts split using specified separator.
|
static List<Integer> |
TextUtils.stringToIntList(String string,
String separator)
Returns a list of integer parts split using specified separator.
|
static List<String> |
TextUtils.stringToList(String string)
Returns a list of text parts split using specified separator.
|
static List<String> |
TextUtils.stringToList(String string,
String separator)
Returns a list of text parts split using specified separator.
|
static BufferedImage |
ImageUtils.toCompatibleImage(BufferedImage bufferedImage)
Returns
BufferedImage compatible with default screen GraphicsConfiguration. |
static List<File> |
FileUtils.toFilesList(Object... object)
Converts objects array into list of files.
|
static String |
ColorUtils.toHex(Color color)
Returns hex string for the specified
Color. |
static int[] |
CollectionUtils.toIntArray(Collection<Integer> collection)
|
static <T> ArrayList<T> |
CollectionUtils.toList(Collection<T> collection)
Returns
List of objects converted from Collection. |
static <T> ArrayList<T> |
CollectionUtils.toList(T[] array)
|
static BufferedImage |
ImageUtils.toNonNullBufferedImage(Icon icon)
Returns
BufferedImage converted from the specified Icon. |
static BufferedImage |
ImageUtils.toNonNullBufferedImage(Image image)
Returns
BufferedImage converted from the specified Image. |
static BufferedImage |
ImageUtils.toNonNullBufferedImage(RenderedImage renderedImage)
Returns
BufferedImage converted from the specified RenderedImage. |
static ImageIcon |
ImageUtils.toNonNullImageIcon(Icon icon)
|
static ImageIcon |
ImageUtils.toNonNullImageIcon(Image image)
|
static Object[] |
CollectionUtils.toObjectArray(Collection collection)
|
static String |
ColorUtils.toRGBA(Color color)
Returns RGBA color string for the specified
Color. |
static String |
ColorUtils.toRGBA(Color color,
String separator)
Returns RGBA color string for the specified
Color. |
static <T> ArrayList<String> |
CollectionUtils.toStringList(List<T> list,
Function<T,String> textProvider)
|
static URI |
NetUtils.toURI(URL url)
Returns URI for the specified address.
|
static <T> Vector<T> |
CollectionUtils.toVector(Collection<T> collection)
Returns a vector of objects converted from collection.
|
static String |
XmlUtils.toXML(Object obj)
Returns Object serialized into XML.
|
static WebTimer |
FileUtils.trackFile(File file,
SystemFileListener listener)
Starts tracking file for possible changes.
|
static WebTimer |
FileUtils.trackFile(File file,
SystemFileListener listener,
long delay)
Starts tracking file for possible changes.
|
static AbstractFileFilter |
FileUtils.transformFileFilter(FileFilter fileFilter)
Returns transformed file filter.
|
static AbstractFileFilter |
FileUtils.transformFileFilter(FileFilter fileFilter)
Returns transformed file filter.
|
static Color |
ColorUtils.transparent()
Returns fully transparent white
Color. |
static Color |
ColorUtils.transparent(Color color,
int alpha)
Returns
Color with modified alpha value. |
static String |
TextUtils.unite(String separator,
String... parts)
Converts and returns specified parts which are not null into single string.
|
static <K,V> ArrayList<V> |
CollectionUtils.valuesList(Map<K,V> map)
Returns map values list.
|
static <K,V> ArrayList<V> |
CollectionUtils.valuesSummaryList(Map<K,List<V>> map)
Returns map values summary list with unique elements only.
|
static Color |
ColorUtils.webSafe(Color color)
Returns web-safe
Color. |
| Modifier and Type | Method and Description |
|---|---|
static void |
XmlUtils.addImplicitArray(Class type,
String field)
Adds an implicit array.
|
static void |
XmlUtils.addImplicitArray(Class type,
String field)
Adds an implicit array.
|
static void |
XmlUtils.addImplicitArray(Class type,
String field,
String itemName)
Adds an implicit array which is used for all items of the given element name defined by itemName.
|
static void |
XmlUtils.addImplicitArray(Class type,
String field,
String itemName)
Adds an implicit array which is used for all items of the given element name defined by itemName.
|
static void |
XmlUtils.addImplicitArray(Class type,
String field,
String itemName)
Adds an implicit array which is used for all items of the given element name defined by itemName.
|
static boolean |
CollectionUtils.addUnique(Collection<Boolean> collection,
boolean[] objects)
Adds all objects into the specified list.
|
static boolean |
CollectionUtils.addUnique(Collection<Boolean> collection,
boolean[] objects)
Adds all objects into the specified list.
|
static boolean |
CollectionUtils.addUnique(Collection<Byte> collection,
byte[] objects)
Adds all objects into the specified list.
|
static boolean |
CollectionUtils.addUnique(Collection<Byte> collection,
byte[] objects)
Adds all objects into the specified list.
|
static boolean |
CollectionUtils.addUnique(Collection<Character> collection,
char[] objects)
Adds all objects into the specified list.
|
static boolean |
CollectionUtils.addUnique(Collection<Character> collection,
char[] objects)
Adds all objects into the specified list.
|
static boolean |
CollectionUtils.addUnique(Collection<Double> collection,
double[] objects)
Adds all objects into the specified list.
|
static boolean |
CollectionUtils.addUnique(Collection<Double> collection,
double[] objects)
Adds all objects into the specified list.
|
static boolean |
CollectionUtils.addUnique(Collection<Float> collection,
float[] objects)
Adds all objects into the specified list.
|
static boolean |
CollectionUtils.addUnique(Collection<Float> collection,
float[] objects)
Adds all objects into the specified list.
|
static boolean |
CollectionUtils.addUnique(Collection<Integer> collection,
int[] objects)
Adds all objects into the specified list.
|
static boolean |
CollectionUtils.addUnique(Collection<Integer> collection,
int[] objects)
Adds all objects into the specified list.
|
static boolean |
CollectionUtils.addUnique(Collection<Long> collection,
long[] objects)
Adds all objects into the specified list.
|
static boolean |
CollectionUtils.addUnique(Collection<Long> collection,
long[] objects)
Adds all objects into the specified list.
|
static boolean |
CollectionUtils.addUnique(Collection<Short> collection,
short[] objects)
Adds all objects into the specified list.
|
static boolean |
CollectionUtils.addUnique(Collection<Short> collection,
short[] objects)
Adds all objects into the specified list.
|
static <T> boolean |
CollectionUtils.addUnique(Collection<T> collection,
Collection<T> objects)
Adds all objects into the specified list.
|
static <T> boolean |
CollectionUtils.addUnique(Collection<T> collection,
Collection<T> objects)
Adds all objects into the specified list.
|
static <T> boolean |
CollectionUtils.addUnique(Collection<T> collection,
T... objects)
Adds all objects into the specified list.
|
static <T> boolean |
CollectionUtils.addUnique(Collection<T> collection,
T... objects)
Adds all objects into the specified list.
|
static <T> boolean |
CollectionUtils.addUniqueNonNull(Collection<T> collection,
Collection<T> objects)
Adds all non-null objects into the specified list.
|
static <T> boolean |
CollectionUtils.addUniqueNonNull(Collection<T> collection,
Collection<T> objects)
Adds all non-null objects into the specified list.
|
static <T> boolean |
CollectionUtils.addUniqueNonNull(Collection<T> collection,
T... objects)
Adds all non-null objects into the specified list.
|
static <T> boolean |
CollectionUtils.addUniqueNonNull(Collection<T> collection,
T... objects)
Adds all non-null objects into the specified list.
|
static <T extends AliasProvider> |
XmlUtils.alias(Class<T> aliasProvider)
Calls static "provideAliases" method on a class that implements AliasProvider.
|
static void |
XmlUtils.alias(String name,
Class type)
Alias a Class to a shorter name to be used in XML elements.
|
static void |
XmlUtils.alias(String name,
Class type)
Alias a Class to a shorter name to be used in XML elements.
|
static String |
FileUtils.appropriateFileName(String text)
Returns appropriate file name based on provided text.
|
static String |
FileUtils.appropriateFileName(String text,
String replacement)
Returns appropriate file name based on provided text.
|
static String |
FileUtils.appropriateFileName(String text,
String replacement)
Returns appropriate file name based on provided text.
|
static <T> boolean |
CollectionUtils.areAllUnique(Collection<T> collection)
Returns whether or not all
Collection elements are unique. |
static <T> String |
TextUtils.arrayToString(String separator,
Function<T,String> textProvider,
Filter<T> filter,
T... array)
Returns single text combined from array of elements using specified separator.
|
static <T> String |
TextUtils.arrayToString(String separator,
Function<T,String> textProvider,
Filter<T> filter,
T... array)
Returns single text combined from array of elements using specified separator.
|
static <T> String |
TextUtils.arrayToString(String separator,
Function<T,String> textProvider,
T... array)
Returns single text combined from array of elements using specified separator.
|
static <T> String |
TextUtils.arrayToString(String separator,
Function<T,String> textProvider,
T... array)
Returns single text combined from array of elements using specified separator.
|
static <T> String |
TextUtils.arrayToString(String separator,
T... array)
Returns single text combined from array of elements using specified separator.
|
static <T> HashSet<T> |
CollectionUtils.asHashSet(Collection<T> data)
Returns data converted into
HashSet. |
static <T> HashSet<T> |
CollectionUtils.asHashSet(T... data)
Returns data converted into
HashSet. |
static ArrayList<Boolean> |
CollectionUtils.asList(boolean[] data)
Returns booleans converted into list.
|
static ArrayList<Byte> |
CollectionUtils.asList(byte[] data)
Returns bytes converted into list.
|
static ArrayList<Character> |
CollectionUtils.asList(char[] data)
Returns characters converted into list.
|
static ArrayList<Double> |
CollectionUtils.asList(double[] data)
Returns doubles converted into list.
|
static ArrayList<Float> |
CollectionUtils.asList(float[] data)
Returns floats converted into list.
|
static ArrayList<Integer> |
CollectionUtils.asList(int[] data)
Returns integers converted into list.
|
static <T> ArrayList<T> |
CollectionUtils.asList(Iterator<T> data)
Returns data converted into list.
|
static ArrayList<Long> |
CollectionUtils.asList(long[] data)
Returns longs converted into list.
|
static ArrayList<Short> |
CollectionUtils.asList(short[] data)
Returns shorts converted into list.
|
static <T> ArrayList<T> |
CollectionUtils.asList(T... data)
Returns data converted into list.
|
static <T> ArrayList<T> |
CollectionUtils.asNonNullList(T... data)
Returns non-null data converted into list.
|
static <T> Vector<T> |
CollectionUtils.asVector(T... data)
Returns a vector of objects converted from data.
|
static void |
WebUtils.browseSite(String address)
Opens site in default system web-browser
|
static void |
WebUtils.browseSiteSafely(String address)
Opens site in default system web-browser safely
|
static <T> T |
ReflectUtils.callMethod(Object object,
String methodName,
Object... arguments)
Calls object's method with the specified name and arguments.
|
static <T> T |
ReflectUtils.callMethod(Object object,
String methodName,
Object... arguments)
Calls object's method with the specified name and arguments.
|
static <T> T |
ReflectUtils.callMethod(Object object,
String methodName,
Object... arguments)
Calls object's method with the specified name and arguments.
|
static <T> List<T> |
ReflectUtils.callMethods(List<?> objects,
String methodName,
Object... arguments)
Returns list of results returned by called methods.
|
static <T> List<T> |
ReflectUtils.callMethods(List<?> objects,
String methodName,
Object... arguments)
Returns list of results returned by called methods.
|
static <T> List<T> |
ReflectUtils.callMethods(List<?> objects,
String methodName,
Object... arguments)
Returns list of results returned by called methods.
|
static Object[] |
ReflectUtils.callMethods(Object[] objects,
String methodName,
Object... arguments)
Returns an array of results returned by called methods.
|
static Object[] |
ReflectUtils.callMethods(Object[] objects,
String methodName,
Object... arguments)
Returns an array of results returned by called methods.
|
static Object[] |
ReflectUtils.callMethods(Object[] objects,
String methodName,
Object... arguments)
Returns an array of results returned by called methods.
|
static <T> T |
ReflectUtils.callMethodSafely(Object object,
String methodName,
Object... arguments)
Returns result given by called method.
|
static <T> T |
ReflectUtils.callMethodSafely(Object object,
String methodName,
Object... arguments)
Returns result given by called method.
|
static <T> T |
ReflectUtils.callMethodSafely(Object object,
String methodName,
Object... arguments)
Returns result given by called method.
|
static <T> List<T> |
ReflectUtils.callMethodsSafely(List<?> objects,
String methodName,
Object... arguments)
Returns list of results returned by called methods.
|
static <T> List<T> |
ReflectUtils.callMethodsSafely(List<?> objects,
String methodName,
Object... arguments)
Returns list of results returned by called methods.
|
static <T> List<T> |
ReflectUtils.callMethodsSafely(List<?> objects,
String methodName,
Object... arguments)
Returns list of results returned by called methods.
|
static Object[] |
ReflectUtils.callMethodsSafely(Object[] objects,
String methodName,
Object... arguments)
Returns an array of results returned by called methods.
|
static Object[] |
ReflectUtils.callMethodsSafely(Object[] objects,
String methodName,
Object... arguments)
Returns an array of results returned by called methods.
|
static Object[] |
ReflectUtils.callMethodsSafely(Object[] objects,
String methodName,
Object... arguments)
Returns an array of results returned by called methods.
|
static void |
TimeUtils.changeByDays(Calendar calendar,
int days)
Changes calendar date by the specified days amount.
|
static void |
FileUtils.clearDirectory(File dir)
Deletes all child files and directories for specified directory.
|
static void |
FileUtils.clearDisplayFileCreationDateCache(String absolutePath)
Clears cache for "getDisplayFileCreationDate" method for specified file path.
|
static void |
FileUtils.clearDisplayFileModificationDateCache(String absolutePath)
Clears cache for "getDisplayFileModificationDate" method for specified file path.
|
static void |
FileUtils.clearDisplayFileNameCache(String absolutePath)
Clears cache for "getDisplayFileName" method for specified file path.
|
static void |
FileUtils.clearFileCaches(String path)
Clears all caches for file under the specified path.
|
static void |
FileUtils.clearFileDescriptionCache(String absolutePath)
Clears cache for "getFileDescription" method for specified file path.
|
static void |
FileUtils.clearFileTypeDescriptionCache(String absolutePath)
Clears cache for "getFileTypeDescription" method for specified file path.
|
static void |
FileUtils.clearIsCdDriveCache(String absolutePath)
Clears cache for "isCdDrive" method for specified file path.
|
static void |
FileUtils.clearIsComputerCache(String absolutePath)
Clears cache for "isComputer" method for specified file path.
|
static void |
FileUtils.clearIsDirectoryCache(String absolutePath)
Clears cache for "isDirectory" method for specified file path.
|
static void |
FileUtils.clearIsDriveCache(String absolutePath)
Clears cache for "isDrive" method for specified file path.
|
static void |
FileUtils.clearIsFileCache(String absolutePath)
Clears cache for "isFile" method for specified file path.
|
static void |
FileUtils.clearIsHiddenCache(String absolutePath)
Clears cache for "isHidden" method for specified file path.
|
static <T> String |
TextUtils.collectionToString(Collection<T> collection,
String separator)
Returns single text combined from
Collection of elements using specified separator. |
static <T> String |
TextUtils.collectionToString(Collection<T> collection,
String separator,
Function<T,String> textProvider)
Returns single text combined from
Collection of elements using specified separator. |
static <T> String |
TextUtils.collectionToString(Collection<T> collection,
String separator,
Function<T,String> textProvider)
Returns single text combined from
Collection of elements using specified separator. |
static <T> String |
TextUtils.collectionToString(Collection<T> collection,
String separator,
Function<T,String> textProvider,
Filter<T> filter)
Returns single text combined from
Collection of elements using specified separator. |
static <T> String |
TextUtils.collectionToString(Collection<T> collection,
String separator,
Function<T,String> textProvider,
Filter<T> filter)
Returns single text combined from
Collection of elements using specified separator. |
static String |
FileUtils.computeMD5(InputStream inputStream)
Returns MD5 for the data provided by
InputStream. |
static String |
FileUtils.computeMD5(InputStream inputStream,
int bufferLength)
Returns MD5 for the data provided by
InputStream and uses a buffer of the specified length. |
static String |
FileUtils.computeMD5(Resource resource)
Returns MD5 for specified
File content. |
static String |
FileUtils.computeMD5(Resource resource,
int bufferLength)
Returns MD5 for specified
File content and uses a buffer of the specified length. |
static String |
FileUtils.computeMD5(String data)
Returns MD5 for specified
String data. |
static String |
FileUtils.computeMD5(String data,
int bufferLength)
Returns MD5 for specified
String data and uses a buffer of the specified length. |
static boolean |
ArrayUtils.contains(byte data,
byte[] array)
Returns whether array contains the specified byte or not.
|
static boolean |
ArrayUtils.contains(char character,
char[] array)
Returns whether array contains the specified character or not.
|
static boolean |
ArrayUtils.contains(double number,
double[] array)
Returns whether array contains the specified number or not.
|
static boolean |
ArrayUtils.contains(float number,
float[] array)
Returns whether array contains the specified number or not.
|
static boolean |
ArrayUtils.contains(int number,
int[] array)
Returns whether array contains the specified number or not.
|
static boolean |
ArrayUtils.contains(long number,
long[] array)
Returns whether array contains the specified number or not.
|
static boolean |
ArrayUtils.contains(Object object,
Object[] array)
Returns whether array contains the specified object or not.
|
static boolean |
ArrayUtils.contains(String text,
String[] array)
Returns whether array contains the specified text or not.
|
static boolean |
FileUtils.containsFile(List files,
File file)
Returns whether list of files or file paths contains the specified file or not.
|
static boolean |
FileUtils.containsFile(List files,
File file)
Returns whether list of files or file paths contains the specified file or not.
|
static long |
IOUtils.copy(InputStream input,
OutputStream output)
Copies bytes from the
InputStream to an OutputStream. |
static long |
IOUtils.copy(InputStream input,
OutputStream output)
Copies bytes from the
InputStream to an OutputStream. |
static long |
IOUtils.copy(InputStream input,
OutputStream output,
byte[] buffer)
Copies bytes from the
InputStream to an OutputStream. |
static long |
IOUtils.copy(InputStream input,
OutputStream output,
byte[] buffer)
Copies bytes from the
InputStream to an OutputStream. |
static long |
IOUtils.copy(InputStream input,
OutputStream output,
byte[] buffer)
Copies bytes from the
InputStream to an OutputStream. |
static long |
IOUtils.copy(InputStream input,
OutputStream output,
int bufferSize)
Copies bytes from the
InputStream to an OutputStream. |
static long |
IOUtils.copy(InputStream input,
OutputStream output,
int bufferSize)
Copies bytes from the
InputStream to an OutputStream. |
static boolean |
FileUtils.copyDirectory(File srcDir,
File dstDir)
Copies src directory content into dst directory and returns whether operation succeed or not.
|
static boolean |
FileUtils.copyDirectory(File srcDir,
File dstDir)
Copies src directory content into dst directory and returns whether operation succeed or not.
|
static boolean |
FileUtils.copyDirectory(File srcDir,
File dstDir,
boolean stopOnFail)
Copies src directory content into dst directory and returns whether operation succeed or not.
|
static boolean |
FileUtils.copyDirectory(File srcDir,
File dstDir,
boolean stopOnFail)
Copies src directory content into dst directory and returns whether operation succeed or not.
|
static boolean |
FileUtils.copyDirectory(String src,
String dst)
Copies src directory content into dst directory and returns whether operation succeed or not.
|
static boolean |
FileUtils.copyDirectory(String src,
String dst)
Copies src directory content into dst directory and returns whether operation succeed or not.
|
static boolean |
FileUtils.copyDirectory(String src,
String dst,
boolean stopOnFail)
Copies src directory content into dst directory and returns whether operation succeed or not.
|
static boolean |
FileUtils.copyDirectory(String src,
String dst,
boolean stopOnFail)
Copies src directory content into dst directory and returns whether operation succeed or not.
|
static boolean |
FileUtils.copyFile(FileChannel srcFC,
FileChannel dstFC)
Copies file data from source file channel into destination file channel.
|
static boolean |
FileUtils.copyFile(FileChannel srcFC,
FileChannel dstFC)
Copies file data from source file channel into destination file channel.
|
static <K,V> HashMap<K,V> |
MapUtils.copyHashMap(HashMap<K,V> map)
Returns copied HashMap.
|
static <K,V> LinkedHashMap<K,V> |
MapUtils.copyLinkedHashMap(LinkedHashMap<K,V> map)
Returns copied LinkedHashMap.
|
static <K,V> HashMap<K,V> |
MapUtils.copyMap(Map<K,V> map)
Returns copied Map.
|
static <T> ArrayList<T> |
CollectionUtils.copySubList(List<T> list,
int fromIndex,
int toIndex)
Returns sub list with copied values.
|
static BufferedImage |
ImageUtils.copyToBufferedImage(BufferedImage bufferedImage)
Returns
BufferedImage containing a copy of BufferedImage. |
static BufferedImage |
ImageUtils.copyToBufferedImage(Icon icon)
Returns
BufferedImage containing a copy of currently displayed Icon frame. |
static BufferedImage |
ImageUtils.copyToBufferedImage(Image image)
Returns
BufferedImage containing a copy of Image. |
static <T> T[] |
ArrayUtils.createArray(Class<T> classType,
int length)
Returns new array with the specified component class type.
|
static <T> T[] |
ArrayUtils.createArray(T[] array,
int length)
Returns new array with the component class type from the specified array.
|
static BufferedImage |
ImageUtils.createCompatibleImage(BufferedImage bufferedImage)
Returns new empty
BufferedImage compatible with default screen GraphicsConfiguration. |
static BufferedImage |
ImageUtils.createDisabledCopy(BufferedImage bufferedImage)
Returns
BufferedImage that is copy of the specified BufferedImage made look disabled. |
static Icon |
ImageUtils.createDisabledCopy(Icon icon)
|
static BufferedImage |
ImageUtils.createDisabledCopy(Image image)
Returns
BufferedImage that is copy of the specified Image made look disabled. |
static FileDescription |
FileUtils.createFileDescription(File file,
String fileSize)
Returns complete file description.
|
static BufferedImage |
ImageUtils.createImageThumbnail(BufferedImage bufferedImage,
Dimension maxSize)
Returns thumbnail
BufferedImage of the specified BufferedImage. |
static BufferedImage |
ImageUtils.createImageThumbnail(BufferedImage bufferedImage,
Dimension maxSize)
Returns thumbnail
BufferedImage of the specified BufferedImage. |
static BufferedImage |
ImageUtils.createImageThumbnail(BufferedImage bufferedImage,
int maxSize)
Returns thumbnail
BufferedImage of the specified BufferedImage. |
static BufferedImage |
ImageUtils.createImageThumbnail(BufferedImage bufferedImage,
int maxWidth,
int maxHeight)
Returns thumbnail
BufferedImage of the specified BufferedImage. |
static BufferedImage |
ImageUtils.createInnerShadowImage(int width,
Shape shape,
int shadowWidth,
float opacity)
Returns shadow image based on provided shape.
|
static BufferedImage |
ImageUtils.createShadowImage(int width,
int height,
Shape shape,
int shadowWidth,
float opacity,
boolean clip)
Returns shadow image based on provided shape.
|
static String |
TextUtils.createString(String character,
int length)
Creates new string filled with specified amount of same characters.
|
static BufferedImage |
ImageUtils.createTransparentCopy(BufferedImage bufferedImage,
float opacity)
Returns
BufferedImage that is copy of the specified BufferedImage made semi-transparent. |
static Icon |
ImageUtils.createTransparentCopy(Icon icon,
float opacity)
|
static BufferedImage |
ImageUtils.createTransparentCopy(Image image,
float opacity)
Returns
BufferedImage that is copy of the specified Image made semi-transparent. |
static BufferedImage |
ImageUtils.cutImage(BufferedImage bufferedImage,
Shape shape)
Returns new
BufferedImage with the specified BufferedImage painted on it within the specified Shape. |
static BufferedImage |
ImageUtils.cutImage(BufferedImage bufferedImage,
Shape shape)
Returns new
BufferedImage with the specified BufferedImage painted on it within the specified Shape. |
static BufferedImage |
ImageUtils.cutImage(Icon icon,
Shape shape)
|
static BufferedImage |
ImageUtils.cutImage(Icon icon,
Shape shape)
|
static BufferedImage |
ImageUtils.cutImage(Image image,
Shape shape)
|
static BufferedImage |
ImageUtils.cutImage(Image image,
Shape shape)
|
static String |
WebUtils.decodeUrl(String url)
Returns decoded url path.
|
static void |
TimeUtils.decreaseByDay(Calendar calendar)
Decreases calendar date by one day.
|
static String |
EncryptionUtils.decrypt(String text,
String key)
Returns text decoded using base64 and decrypted through xor.
|
static void |
FileUtils.deleteFile(File file)
Deletes file or directory completely.
|
static void |
FileUtils.deleteFiles(List files)
Deletes all specified files.
|
static void |
FileUtils.deleteFiles(Object... files)
Deletes all specified files.
|
static void |
FileUtils.displayFileName(JTextComponent editor,
File file)
Sets file name as text and selects its name part in any text component.
|
static void |
FileUtils.displayFileName(JTextComponent editor,
File file)
Sets file name as text and selects its name part in any text component.
|
static int |
GeometryUtils.distance(Point p1,
Point p2)
Returns distance between two points.
|
static int |
GeometryUtils.distance(Point p1,
Point p2)
Returns distance between two points.
|
static <T> List<T> |
CollectionUtils.distinct(List<T> list)
Removes non-distinct
List elements. |
static File |
FileUtils.downloadFile(String url,
File dstFile)
Downloads file from the specified url to destination file and returns it if download succeed.
|
static File |
FileUtils.downloadFile(String url,
File dstFile)
Downloads file from the specified url to destination file and returns it if download succeed.
|
static File |
FileUtils.downloadFile(String url,
File dstFile,
boolean encodeUrl,
String contentType,
int timeout)
Downloads file from the specified url to destination file and returns it if download succeed.
|
static File |
FileUtils.downloadFile(String url,
File dstFile,
boolean encodeUrl,
String contentType,
int timeout)
Downloads file from the specified url to destination file and returns it if download succeed.
|
static File |
FileUtils.downloadFile(String url,
File dstFile,
boolean encodeUrl,
String contentType,
int timeout,
FileDownloadListener listener)
Downloads file from the specified url to destination file and returns it if download succeed.
|
static File |
FileUtils.downloadFile(String url,
File dstFile,
boolean encodeUrl,
String contentType,
int timeout,
FileDownloadListener listener)
Downloads file from the specified url to destination file and returns it if download succeed.
|
static File |
FileUtils.downloadFile(String url,
File dstFile,
FileDownloadListener listener)
Downloads file from the specified url to destination file and returns it if download succeed.
|
static File |
FileUtils.downloadFile(String url,
File dstFile,
FileDownloadListener listener)
Downloads file from the specified url to destination file and returns it if download succeed.
|
static File |
FileUtils.downloadFile(String url,
String dst,
boolean encodeUrl,
String contentType,
int timeout)
Downloads file from the specified url to destination file and returns it if download succeed.
|
static File |
FileUtils.downloadFile(String url,
String dst,
boolean encodeUrl,
String contentType,
int timeout)
Downloads file from the specified url to destination file and returns it if download succeed.
|
static File |
FileUtils.downloadFile(String url,
String dst,
boolean encodeUrl,
String contentType,
int timeout,
FileDownloadListener listener)
Downloads file from the specified url to destination file and returns it if download succeed.
|
static File |
FileUtils.downloadFile(String url,
String dst,
boolean encodeUrl,
String contentType,
int timeout,
FileDownloadListener listener)
Downloads file from the specified url to destination file and returns it if download succeed.
|
static String |
WebUtils.encodeUrl(String url)
Returns encoded url path.
|
static String |
EncryptionUtils.encrypt(String text,
String key)
Returns text encrypted through xor and encoded using base64.
|
static <E extends Enum<E>> |
TextUtils.enumArrayToString(String separator,
E... enumArray)
Converts array of enumeration constants into string with list of enumeration constants and returns it.
|
static <E extends Enum<E>> |
TextUtils.enumListToString(List<E> enumList,
String separator)
Converts list of enumeration constants into string with list of enumeration constants and returns it.
|
static <E extends Enum<E>> |
TextUtils.enumStringToList(String enumString,
Class<E> enumClass)
Converts string with list of enumeration constants into real list of enumeration constants and returns it.
|
static <E extends Enum<E>> |
TextUtils.enumStringToList(String enumString,
Class<E> enumClass,
String separator)
Converts string with list of enumeration constants into real list of enumeration constants and returns it.
|
static <E extends Enum<E>> |
TextUtils.enumStringToList(String enumString,
Class<E> enumClass,
String separator)
Converts string with list of enumeration constants into real list of enumeration constants and returns it.
|
static boolean |
CollectionUtils.equals(Collection collection1,
Collection collection2)
Returns whether
Collections are equal or not. |
static boolean |
CollectionUtils.equals(Collection collection1,
Collection collection2)
Returns whether
Collections are equal or not. |
static boolean |
FileUtils.equals(List<File> files1,
List<File> files2)
Returns whether both list of files have equal files in the same positions or not.
|
static boolean |
FileUtils.equals(List<File> files1,
List<File> files2)
Returns whether both list of files have equal files in the same positions or not.
|
static Rectangle |
GeometryUtils.expand(Rectangle rect,
int expansion)
Returns rectangle expanded in four directions for the specified value.
|
static Rectangle |
GeometryUtils.expand(Rectangle rect,
int top,
int left,
int bottom,
int right)
Returns rectangle expanded in four directions for the specified values.
|
static <T> List<T> |
CollectionUtils.fillList(int size,
Function<Integer,T> indexMapper)
|
static <T> ArrayList<T> |
CollectionUtils.filter(Collection<T> collection,
Filter<T>... filters)
Returns list of elements filtered from collection.
|
static <T> ArrayList<T> |
CollectionUtils.filter(Collection<T> collection,
Filter<T>... filters)
Returns list of elements filtered from collection.
|
static <T> ArrayList<T> |
CollectionUtils.filter(Collection<T> collection,
Filter<T> filter)
Returns list of elements filtered from collection.
|
static List<File> |
FileUtils.filterFiles(Collection<File> files,
AbstractFileFilter fileFilter)
Returns filtered files list.
|
static List<File> |
FileUtils.filterFiles(Collection<File> files,
AbstractFileFilter fileFilter)
Returns filtered files list.
|
static List<File> |
FileUtils.filterFiles(Collection<File> files,
Filter<File> fileFilter)
Returns filtered files list.
|
static List<File> |
FileUtils.filterFiles(Collection<File> files,
Filter<File> fileFilter)
Returns filtered files list.
|
static List<File> |
FileUtils.findFilesRecursively(File dir,
FileFilter filter)
Returns list of files accepted by file filter found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(File dir,
FileFilter filter)
Returns list of files accepted by file filter found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(File dir,
FileFilter filter,
List<File> found)
Returns list of files accepted by file filter found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(File dir,
FileFilter filter,
List<File> found)
Returns list of files accepted by file filter found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(File dir,
FileFilter filter,
List<File> found)
Returns list of files accepted by file filter found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(File dir,
List<String> extension)
Returns list of files with specified extensions found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(File dir,
List<String> extension)
Returns list of files with specified extensions found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(File dir,
List<String> extension,
boolean withDot)
Returns list of files with specified extensions found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(File dir,
List<String> extension,
boolean withDot)
Returns list of files with specified extensions found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(File dir,
List<String> extension,
boolean withDot,
List<File> found)
Returns list of files with specified extensions found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(File dir,
List<String> extension,
boolean withDot,
List<File> found)
Returns list of files with specified extensions found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(File dir,
List<String> extension,
boolean withDot,
List<File> found)
Returns list of files with specified extensions found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(String dir,
FileFilter filter)
Returns list of files accepted by file filter found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(String dir,
FileFilter filter)
Returns list of files accepted by file filter found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(String dir,
FileFilter filter,
List<File> found)
Returns list of files accepted by file filter found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(String dir,
FileFilter filter,
List<File> found)
Returns list of files accepted by file filter found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(String dir,
FileFilter filter,
List<File> found)
Returns list of files accepted by file filter found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(String dir,
List<String> extension)
Returns list of files with specified extensions found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(String dir,
List<String> extension)
Returns list of files with specified extensions found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(String dir,
List<String> extension,
boolean withDot)
Returns list of files with specified extensions found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(String dir,
List<String> extension,
boolean withDot)
Returns list of files with specified extensions found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(String dir,
List<String> extension,
boolean withDot,
List<File> found)
Returns list of files with specified extensions found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(String dir,
List<String> extension,
boolean withDot,
List<File> found)
Returns list of files with specified extensions found in the specified directory and its subdirectories.
|
static List<File> |
FileUtils.findFilesRecursively(String dir,
List<String> extension,
boolean withDot,
List<File> found)
Returns list of files with specified extensions found in the specified directory and its subdirectories.
|
static Integer |
TextUtils.findFirstNumber(String text)
Returns first number found in text.
|
static int |
TextUtils.findFirstRowWordEndIndex(String string)
Returns last index of the first word end.
|
static int |
TextUtils.findFirstWordFromIndex(String string,
int from)
Returns begin index of first word after specified index.
|
static int |
TextUtils.findLastRowWordStartIndex(String string)
Returns begin index of last word in the specified text.
|
static Point |
GeometryUtils.findMiddleLineIntersection(Rectangle rect,
Point outer)
Returns intersection point of the rectangle and the line going from the middle of that rectangle to the outer point.
|
static Point |
GeometryUtils.findMiddleLineIntersection(Rectangle rect,
Point outer)
Returns intersection point of the rectangle and the line going from the middle of that rectangle to the outer point.
|
static String |
TextUtils.format(String text,
Object... objects)
Returns message formatted with common string representations of the provided objects.
|
static String |
TimeUtils.formatCurrentDate(String format)
Returns formatted representation of current date.
|
static String |
TimeUtils.formatDate(String format,
Date date)
Returns formatted representation of specified date.
|
static String |
TimeUtils.formatDate(String format,
Date date)
Returns formatted representation of specified date.
|
static Color |
ColorUtils.fromHex(String hex)
Returns color decoded from a hex color string.
|
static Color |
ColorUtils.fromRGBA(String rgba)
Returns
Color decoded from RGBA color string. |
static Color |
ColorUtils.fromRGBA(String rgba,
String separator)
Returns
Color decoded from RGBA color string. |
static Color |
ColorUtils.fromRGBA(String rgba,
String separator)
Returns
Color decoded from RGBA color string. |
static <T> T |
XmlUtils.fromXML(InputStream input)
Returns Object deserialized from XML content.
|
static <T> T |
XmlUtils.fromXML(InputStream input,
Object root)
Returns Object deserialized from XML content.
|
static <T> T |
XmlUtils.fromXML(InputStream input,
Object root)
Returns Object deserialized from XML content.
|
static <T> T |
XmlUtils.fromXML(InputStream input,
XStreamContext context)
Returns Object deserialized from XML content.
|
static <T> T |
XmlUtils.fromXML(Reader reader)
Returns Object deserialized from XML content.
|
static <T> T |
XmlUtils.fromXML(Reader reader,
Object root)
Returns Object deserialized from XML content.
|
static <T> T |
XmlUtils.fromXML(Reader reader,
Object root)
Returns Object deserialized from XML content.
|
static <T> T |
XmlUtils.fromXML(Reader reader,
XStreamContext context)
Returns Object deserialized from XML content.
|
static <T> T |
XmlUtils.fromXML(Resource resource)
Returns Object deserialized from XML text.
|
static <T> T |
XmlUtils.fromXML(Resource resource,
Object root)
Returns Object deserialized from XML text.
|
static <T> T |
XmlUtils.fromXML(Resource resource,
Object root)
Returns Object deserialized from XML text.
|
static <T> T |
XmlUtils.fromXML(Resource resource,
XStreamContext context)
Returns Object deserialized from XML text.
|
static <T> T |
XmlUtils.fromXML(String xml)
Returns Object deserialized from XML content.
|
static <T> T |
XmlUtils.fromXML(String xml,
Object root)
Returns Object deserialized from XML content.
|
static <T> T |
XmlUtils.fromXML(String xml,
Object root)
Returns Object deserialized from XML content.
|
static <T> T |
XmlUtils.fromXML(String xml,
XStreamContext context)
Returns Object deserialized from XML content.
|
static String |
NetUtils.getAddress(URL url)
Returns address represented by the specified URL object.
|
static double |
GeometryUtils.getAngle(Point p1,
Point p2)
Returns angle between the line specified by points and y=0 line.
|
static double |
GeometryUtils.getAngle(Point p1,
Point p2)
Returns angle between the line specified by points and y=0 line.
|
static String |
FileUtils.getAvailableName(File dir,
String name)
Returns available file name in the specified directory and which is similar the specified name.
|
static String |
FileUtils.getAvailableName(File dir,
String name)
Returns available file name in the specified directory and which is similar the specified name.
|
static String |
FileUtils.getAvailableName(List<String> existingNames,
String name)
Returns available file name that is not contained in the existing names list.
|
static String |
FileUtils.getAvailableName(List<String> existingNames,
String name)
Returns available file name that is not contained in the existing names list.
|
static String |
FileUtils.getAvailableName(String dir,
String name)
Returns available file name in the specified directory and which is similar the specified name.
|
static String |
FileUtils.getAvailableName(String dir,
String name)
Returns available file name in the specified directory and which is similar the specified name.
|
static String |
NetUtils.getBaseAddress(String address)
Returns base address for the specified complete address.
|
static Rectangle |
CoreSwingUtils.getBoundsInWindow(Component component)
Returns component bounds inside its window.
|
static Rectangle |
CoreSwingUtils.getBoundsOnScreen(Component component,
boolean visibleOnly)
Returns
Component bounds on screen, either only visible or complete ones. |
static <T> Class<T> |
ReflectUtils.getClass(String canonicalName)
Returns class for the specified canonical name.
|
static String |
ReflectUtils.getClassFileName(Class classType)
Returns class name with ".class" extension in the end.
|
static String |
ReflectUtils.getClassFileName(Object classObject)
Returns class name with ".class" extension in the end.
|
static String |
ReflectUtils.getClassName(Class classType)
Returns class name.
|
static String |
ReflectUtils.getClassName(Object classObject)
Returns class name.
|
static <T> Class<T> |
ReflectUtils.getClassSafely(String canonicalName)
Returns class for the specified canonical name.
|
static Class[] |
ReflectUtils.getClassTypes(Object[] arguments)
Returns an array of argument class types.
|
static String |
ReflectUtils.getCompleteClassName(Class classType)
Returns complete class name that includes enclosing class name if one exists.
|
static String |
ReflectUtils.getCompleteClassName(Object classObject)
Returns complete class name that includes enclosing class name if one exists.
|
static Rectangle |
SystemUtils.getDeviceBounds(Component component,
boolean applyScreenInsets)
Returns screen bounds within which most part of the specified component is placed.
|
static Rectangle |
SystemUtils.getDeviceBounds(Point location,
boolean applyScreenInsets)
Returns screen bounds for the specified location.
|
static Rectangle |
SystemUtils.getDeviceBounds(Rectangle bounds,
boolean applyScreenInsets)
Returns screen bounds within which most part of the specified bounds is placed.
|
static Icon |
ImageUtils.getDisabledCopy(Icon icon)
Returns new or cached copy of specified
Icon made look disabled. |
static String |
FileUtils.getDisplayFileCreationDate(File file)
Returns file modification date to display.
|
static String |
FileUtils.getDisplayFileModificationDate(File file)
Returns file modification date to display.
|
static String |
FileUtils.getDisplayFileName(File file)
Returns file name to display.
|
static String |
FileUtils.getDisplayFileSize(File file)
Returns file size to display.
|
static String |
FileUtils.getDisplayFileSize(File file,
int digits)
Returns file size to display.
|
static Color |
ImageUtils.getDominantColor(BufferedImage image)
Returns dominant
Color for the specified BufferedImage. |
static Date |
TimeUtils.getEndOfDay(Date date)
Returns end-of-day date.
|
static Field |
ReflectUtils.getField(Class<?> classType,
String fieldName)
Returns specified class field.
|
static Field |
ReflectUtils.getField(Class<?> classType,
String fieldName)
Returns specified class field.
|
static Field |
ReflectUtils.getFieldSafely(Class classType,
String fieldName)
Returns specified class field.
|
static Field |
ReflectUtils.getFieldSafely(Class classType,
String fieldName)
Returns specified class field.
|
static FileDescription |
FileUtils.getFileDescription(File file,
String fileSize)
Returns complete file description.
|
static String |
ZipUtils.getFileLocation(ZipEntry zipEntry)
Returns file location for the specified zip entry.
|
static String |
ZipUtils.getFileName(ZipEntry zipEntry)
Returns file name for the specified zip entry.
|
static int |
FileUtils.getFileSize(String url)
Returns file size, located at the specified url.
|
static int |
FileUtils.getFileSize(URL url)
Returns file size, located at the specified url.
|
static GraphicsDevice |
SystemUtils.getGraphicsDevice(Point location)
Returns screen device for the specified location.
|
static GraphicsDevice |
SystemUtils.getGraphicsDevice(Rectangle bounds)
Returns screen device where most part of specified bounds is placed.
|
static String |
NetUtils.getHost(String address)
Returns host for the specified address.
|
static Icon |
FileUtils.getIconResource(Class nearClass,
String resource)
Returns resource icon.
|
static Icon |
FileUtils.getIconResource(Class nearClass,
String resource)
Returns resource icon.
|
static Icon |
FileUtils.getIconResource(Class nearClass,
String resource,
float opacity)
Returns resource icon with the specified opacity.
|
static Icon |
FileUtils.getIconResource(Class nearClass,
String resource,
float opacity)
Returns resource icon with the specified opacity.
|
static File |
FileUtils.getJarLocationFile(Class jarClass)
Returns JAR location File for the specified class.
|
static URL |
FileUtils.getJarLocationURL(Class jarClass)
Returns JAR location URL for the specified class.
|
static String |
ReflectUtils.getJavaClassName(Class classType)
Returns class name with ".java" extension in the end.
|
static String |
ReflectUtils.getJavaClassName(Object classObject)
Returns class name with ".java" extension in the end.
|
static Rectangle |
SystemUtils.getMaximizedBounds(Frame frame)
Returns maximized bounds for the screen where specified frame is displayed.
|
static Rectangle |
SystemUtils.getMaximizedEastBounds(Frame frame)
Returns maximized bounds for the east half of the screen where specified frame is displayed.
|
static Rectangle |
SystemUtils.getMaximizedWestBounds(Frame frame)
Returns maximized bounds for the west half of the screen where specified frame is displayed.
|
static Method |
ReflectUtils.getMethod(Class aClass,
String methodName,
Object... arguments)
Returns object's method with the specified name and arguments.
|
static Method |
ReflectUtils.getMethod(Class aClass,
String methodName,
Object... arguments)
Returns object's method with the specified name and arguments.
|
static Method |
ReflectUtils.getMethod(Class aClass,
String methodName,
Object... arguments)
Returns object's method with the specified name and arguments.
|
static Point |
CoreSwingUtils.getMouseLocation(Component component)
Returns mouse location on the screen relative to specified component.
|
static Rectangle |
GeometryUtils.getNonNullContainingRect(List<Point> points)
Returns rectangle containing all specified points.
|
static Rectangle |
GeometryUtils.getNonNullContainingRect(Point... points)
Returns rectangle containing all specified points.
|
static Rectangle |
GeometryUtils.getNonNullContainingRect(Rectangle... rectangles)
Returns rectangle containing all specified rectangles.
|
static Rectangle |
GeometryUtils.getNonNullContainingRect(Rectangle r1,
Rectangle r2)
Returns rectangle containing two others.
|
static Rectangle |
GeometryUtils.getNonNullContainingRect(Rectangle r1,
Rectangle r2)
Returns rectangle containing two others.
|
static JRootPane |
CoreSwingUtils.getNonNullRootPane(Component component)
Returns root pane for the specified component or
null if it doesn't exist. |
static Window |
CoreSwingUtils.getNonNullWindowAncestor(Component component)
|
static File |
FileUtils.getParent(File file)
Returns parent
File. |
static String |
HtmlUtils.getPlainText(String html)
Returns plain text extracted from the specified HTML.
|
static String |
HtmlUtils.getPlainText(String html,
String lineSeparator)
Returns plain text extracted from the specified HTML.
|
static String |
HtmlUtils.getPlainText(String html,
String lineSeparator)
Returns plain text extracted from the specified HTML.
|
static int |
NetUtils.getPort(String address)
Returns port for the specified address or
-1 if it is not set. |
static String |
FileUtils.getProperFileName(String name)
Returns a valid for any file system file name based on specified name.
|
static Rectangle |
CoreSwingUtils.getRelativeBounds(Component component,
Component relativeTo)
Returns component bounds relative to another component.
|
static Rectangle |
CoreSwingUtils.getRelativeBounds(Component component,
Component relativeTo)
Returns component bounds relative to another component.
|
static Point |
CoreSwingUtils.getRelativeLocation(Component component,
Component relativeTo)
Returns component location relative to another component.
|
static Point |
CoreSwingUtils.getRelativeLocation(Component component,
Component relativeTo)
Returns component location relative to another component.
|
static String |
FileUtils.getRelativePath(File file,
File folder)
Returns file path relative to specified folder or canonical path if file is not inside that folder.
|
static String |
FileUtils.getRelativePath(File file,
File folder)
Returns file path relative to specified folder or canonical path if file is not inside that folder.
|
static String |
TextUtils.getSettingsKey(Object... settings)
Returns settings combined into a single key.
|
static String |
ExceptionUtils.getStackTrace(StackTraceElement[] trace)
Returns String representation of the specified stack trace.
|
static String |
ExceptionUtils.getStackTrace(Throwable throwable)
Returns the stack trace from a Throwable as a String.
|
static Icon |
FileUtils.getStandardFileIcon(boolean large,
String extension,
float opacity)
Returns either large or small icon for the specified extension from a standard icons set.
|
static Date |
TimeUtils.getStartOfDay(Date date)
Returns start-of-day date.
|
static List<String> |
FileUtils.getSubPaths(File dir)
Returns list of all file paths in this directory and all subdirectories.
|
static List<String> |
FileUtils.getSubPaths(File dir,
String path)
Returns list of all file paths in this directory and all subdirectories.
|
static List<String> |
FileUtils.getSubPaths(File dir,
String path)
Returns list of all file paths in this directory and all subdirectories.
|
static List<String> |
FileUtils.getSubPaths(File dir,
String path,
List<String> paths)
Returns list of all file paths in this directory and all subdirectories.
|
static List<String> |
FileUtils.getSubPaths(File dir,
String path,
List<String> paths)
Returns list of all file paths in this directory and all subdirectories.
|
static List<String> |
FileUtils.getSubPaths(File dir,
String path,
List<String> paths)
Returns list of all file paths in this directory and all subdirectories.
|
static List<String> |
FileUtils.getSubPaths(String dir)
Returns list of all file paths in this directory and all subdirectories.
|
static Component |
CoreSwingUtils.getTopComponentAt(Component component,
Point point)
Returns top component inside the specified container component at the specified point.
|
static File |
FileUtils.getTopParent(File file)
Returns top not-null parent for the specified file.
|
static Icon |
ImageUtils.getTransparentCopy(Icon icon,
float opacity)
Returns new or cached copy of specified
Icon made look disabled. |
static URI |
NetUtils.getURI(String address)
Returns URI for the specified address.
|
static URL |
NetUtils.getURL(String address)
Returns URL for the specified address.
|
static Map<String,List<String>> |
WebUtils.getUrlParameters(String url)
Returns url query parameters.
|
static Rectangle |
CoreSwingUtils.getVisibleRect(Component component)
Returns intersection of the visible rectangles for the component and all of its ancestors.
|
static String |
TextUtils.getWord(String text,
int location)
Returns a word from text at the specified location.
|
static int |
TextUtils.getWordEnd(String text,
int location)
Returns a word end index at the specified location.
|
static int |
TextUtils.getWordStart(String text,
int location)
Returns index of the first character in the word at the specified location.
|
static boolean |
FileUtils.grantExecutePermissions(File file)
Grants file execution permission for all users for specified file.
|
static Color |
ColorUtils.grayscale(Color color)
Returns grayscale version of the specified
Color. |
static boolean |
ReflectUtils.hasMethod(Class aClass,
String methodName,
Object... arguments)
Returns whether method with the specified name and arguments exists in the specified class.
|
static boolean |
ReflectUtils.hasMethod(Class aClass,
String methodName,
Object... arguments)
Returns whether method with the specified name and arguments exists in the specified class.
|
static boolean |
ReflectUtils.hasMethod(Class aClass,
String methodName,
Object... arguments)
Returns whether method with the specified name and arguments exists in the specified class.
|
static boolean |
ReflectUtils.hasMethod(Object object,
String methodName,
Object... arguments)
Returns whether method with the specified name and arguments exists in the specified object.
|
static boolean |
ReflectUtils.hasMethod(Object object,
String methodName,
Object... arguments)
Returns whether method with the specified name and arguments exists in the specified object.
|
static boolean |
ReflectUtils.hasMethod(Object object,
String methodName,
Object... arguments)
Returns whether method with the specified name and arguments exists in the specified object.
|
static void |
TimeUtils.increaseByDay(Calendar calendar)
Increases calendar date by one day.
|
static int |
ArrayUtils.indexOf(byte data,
byte[] array)
Returns index of specified byte in array.
|
static int |
ArrayUtils.indexOf(char character,
char[] array)
Returns index of specified character in array.
|
static int |
ArrayUtils.indexOf(double number,
double[] array)
Returns index of specified double in array.
|
static int |
ArrayUtils.indexOf(float number,
float[] array)
Returns index of specified float in array.
|
static int |
ArrayUtils.indexOf(int number,
int[] array)
Returns index of specified int in array.
|
static int |
ArrayUtils.indexOf(long number,
long[] array)
Returns index of specified long in array.
|
static int |
ArrayUtils.indexOf(Object object,
Object[] array)
Returns index of specified object in array.
|
static int |
ArrayUtils.indexOf(String text,
String[] array)
Returns index of specified text in array.
|
static int |
ArrayUtils.indexOf(String text,
String[] array,
boolean ignoreCase)
Returns index of specified text in array.
|
static boolean[] |
ArrayUtils.insert(boolean[] array,
int index,
boolean object)
Returns new array with boolean inserted at the specified index.
|
static byte[] |
ArrayUtils.insert(byte[] array,
int index,
byte object)
Returns new array with byte inserted at the specified index.
|
static char[] |
ArrayUtils.insert(char[] array,
int index,
char object)
Returns new array with char inserted at the specified index.
|
static double[] |
ArrayUtils.insert(double[] array,
int index,
double object)
Returns new array with double inserted at the specified index.
|
static float[] |
ArrayUtils.insert(float[] array,
int index,
float object)
Returns new array with float inserted at the specified index.
|
static int[] |
ArrayUtils.insert(int[] array,
int index,
int object)
Returns new array with int inserted at the specified index.
|
static <T> T[] |
ArrayUtils.insert(T[] array,
int index,
T object)
Returns new array with object inserted at the specified index.
|
static Color |
ColorUtils.intermediate(Color color1,
Color color2,
float progress)
|
static Color |
ColorUtils.intermediate(Color color1,
Color color2,
float progress)
|
static void |
CoreSwingUtils.invokeAndWait(Runnable runnable)
Will invoke the specified
Runnable in EDT in case it is called from non-EDT thread. |
static void |
CoreSwingUtils.invokeAndWait(Runnable runnable,
boolean ignoreInterrupts)
Will invoke the specified
Runnable in EDT in case it is called from non-EDT thread. |
static void |
CoreSwingUtils.invokeLater(Runnable runnable)
Will invoke specified
Runnable later in EDT. |
static void |
CoreSwingUtils.invokeOnEventDispatchThread(Runnable runnable)
|
static boolean |
FileUtils.isCdDrive(File file)
Returns whether the specified file points to system CD/DVD/Bluray drive or not.
|
static boolean |
ImageUtils.isCompatibleImage(BufferedImage bufferedImage)
Returns whether or not specified
BufferedImage is compatible with default screen GraphicsConfiguration. |
static boolean |
FileUtils.isComputer(File file)
Returns whether the specified file points to system hard drive or not.
|
static boolean |
FileUtils.isDrive(File file)
Returns whether the specified file points to system hard drive or not.
|
static boolean |
FileUtils.isFileAccepted(File file,
List<AbstractFileFilter> filters)
Returns whether any of the specified file filters accept the file or not.
|
static boolean |
CoreSwingUtils.isHovered(Component component)
Returns whether or not specified
Component is currently hovered. |
static boolean |
CoreSwingUtils.isMenuShortcutKeyDown(InputEvent event)
Returns whether or not specified
InputEvent contains a menu shortcut key. |
static boolean |
FileUtils.isNameEditable(File file)
Returns whether specified file's name can be edited.
|
static boolean |
TimeUtils.isSameDay(Calendar calendar,
Date date)
Returns true if date contained in Calendar and specified date both represent the same day.
|
static boolean |
TimeUtils.isSameDay(Calendar calendar,
Date date)
Returns true if date contained in Calendar and specified date both represent the same day.
|
static boolean |
TimeUtils.isSameDay(Calendar calendar,
Long date)
Returns true if date contained in Calendar and specified time both represent the same day.
|
static boolean |
TimeUtils.isSameDay(Calendar calendar,
Long date)
Returns true if date contained in Calendar and specified time both represent the same day.
|
static boolean |
TimeUtils.isSameDay(Date date1,
Date date2)
Returns true if both of the dates represent the same day.
|
static boolean |
TimeUtils.isSameDay(Date date1,
Date date2)
Returns true if both of the dates represent the same day.
|
static boolean |
TimeUtils.isSameDay(Long time1,
Long time2)
Returns true if both of the time represent the same day.
|
static boolean |
TimeUtils.isSameDay(Long time1,
Long time2)
Returns true if both of the time represent the same day.
|
static boolean |
ImageUtils.isTransparent(BufferedImage bufferedImage,
int x,
int y)
Returns whether or not specified
BufferedImage pixel is fully transparent. |
static boolean |
CoreSwingUtils.isVisibleOnScreen(Component component)
Returns whether or not specified
Component is actually visible on screen. |
static String |
NetUtils.joinUrlPaths(String part1,
String part2)
Joins two url paths without leaving any unnecessary path separators.
|
static String |
NetUtils.joinUrlPaths(String part1,
String part2)
Joins two url paths without leaving any unnecessary path separators.
|
static <K,V> ArrayList<K> |
CollectionUtils.keysList(Map<K,V> map)
Returns map keys list.
|
static int |
ArrayUtils.lastIndexOf(Object object,
Object[] array)
Returns last index of specified object in array.
|
static <T> List<T> |
CollectionUtils.limit(List<T> list,
int limit)
Returns list with limited amount of objects from the initial list.
|
static File[] |
FileUtils.listFiles(File directory)
Returns directory files array or empty array (instead of null) if no files present.
|
static File[] |
FileUtils.listFiles(File directory,
FileFilter fileFilter)
Returns directory files array or empty array (instead of null) if no files present.
|
static File[] |
FileUtils.listFiles(File directory,
Filter<File> fileFilter)
Returns directory files array or empty array (instead of null) if no files present.
|
static <T> String |
TextUtils.listToString(List<T> list,
String separator)
Returns single text combined from list of elements using specified separator.
|
static <T> String |
TextUtils.listToString(List<T> list,
String separator,
Function<T,String> textProvider)
Returns single text combined from list of elements using specified separator.
|
static <T> String |
TextUtils.listToString(List<T> list,
String separator,
Function<T,String> textProvider)
Returns single text combined from list of elements using specified separator.
|
static <T> String |
TextUtils.listToString(List<T> list,
String separator,
Function<T,String> textProvider,
Filter<T> filter)
Returns single text combined from list of elements using specified separator.
|
static <T> String |
TextUtils.listToString(List<T> list,
String separator,
Function<T,String> textProvider,
Filter<T> filter)
Returns single text combined from list of elements using specified separator.
|
static BufferedImage |
ImageUtils.loadBufferedImage(InputStream inputStream)
Returns
BufferedImage loaded from the specified InputStream. |
static BufferedImage |
ImageUtils.loadBufferedImage(Resource resource)
Returns
BufferedImage loaded from the specified Resource. |
static BufferedImage |
ImageUtils.loadCompatibleImage(Resource resource)
Returns
BufferedImage loaded from the specified Resource. |
static ImageIcon |
ImageUtils.loadImageIcon(InputStream inputStream)
|
static ImageIcon |
ImageUtils.loadImageIcon(Resource resource)
|
static Point |
CoreSwingUtils.locationOnScreen(Component component)
Returns
Component location on screen. |
static <T> T |
CollectionUtils.max(Collection<T> collection,
Comparator<T> comparator)
Returns maximum element of the
Collection according to Comparator. |
static int |
MathUtils.max(int... integers)
Returns maximum of the specified integer numbers.
|
static <K,V> HashMap<K,V> |
MapUtils.merge(Map<K,V>... maps)
Merges specified maps into one new map and returns it.
|
static Point |
GeometryUtils.middle(Point p1,
Point p2)
Returns middle point between the specified points.
|
static Point |
GeometryUtils.middle(Point p1,
Point p2)
Returns middle point between the specified points.
|
static Point |
GeometryUtils.middle(Rectangle rectangle)
Returns middle point for the specified rectangle.
|
static int |
MathUtils.min(int... integers)
Returns minimum of the specified integer numbers.
|
static Point |
GeometryUtils.modify(Point point,
int xMod,
int yMod)
Returns modified point.
|
static <K,V> HashMap<K,V> |
MapUtils.newHashMap(Map<K,V> data)
Returns newly created HashMap with the specified map data.
|
static <T> ArrayList<T> |
CollectionUtils.nonNullCopy(Collection<T> collection)
|
static String |
WebUtils.normalizeUrl(String url)
Returns normalized url path.
|
static List<String> |
TextUtils.numbered(String pattern,
int from,
int to)
Returns list of strings based on single pattern parsed using different number values in range.
|
static void |
XmlUtils.omitField(Class type,
String field)
Prevents field from being serialized.
|
static void |
XmlUtils.omitField(Class type,
String field)
Prevents field from being serialized.
|
static Color |
ColorUtils.opaque(Color color)
Returns
Color with alpha value set to 255. |
static void |
WebUtils.openFile(File file)
Opens file in appropriate system application
|
static void |
WebUtils.openFileSafely(File file)
Opens file in appropriate system application safely
|
static Point |
TextUtils.parsePoint(String text)
Returns point extracted from text.
|
static Point |
TextUtils.parsePoint(String text,
String separator)
Returns point extracted from text.
|
static Point |
TextUtils.parsePoint(String text,
String separator)
Returns point extracted from text.
|
static void |
XmlUtils.processAnnotations(Class type)
Process the annotations of the given type and configure the XStream.
|
static void |
XmlUtils.processAnnotations(Class[] types)
Process the annotations of the given types and configure the XStream.
|
static int |
MathUtils.random(int... numbers)
Returns random integer number from one the specified integers.
|
static Resource |
XmlUtils.readResource(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context,
com.thoughtworks.xstream.mapper.Mapper mapper)
Returns
Resource based on the available attributes in the current node. |
static Resource |
XmlUtils.readResource(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context,
com.thoughtworks.xstream.mapper.Mapper mapper)
Returns
Resource based on the available attributes in the current node. |
static Resource |
XmlUtils.readResource(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context,
com.thoughtworks.xstream.mapper.Mapper mapper)
Returns
Resource based on the available attributes in the current node. |
static String |
FileUtils.readToString(InputStream inputStream)
Returns content read from the input stream.
|
static String |
FileUtils.readToString(InputStream inputStream,
String encoding)
Returns content read from the input stream.
|
static String |
FileUtils.readToString(InputStream inputStream,
String encoding)
Returns content read from the input stream.
|
static String |
FileUtils.readToString(Reader reader)
Returns content read from the specified reader.
|
static String |
FileUtils.readToString(Resource resource)
|
static String |
FileUtils.readToString(Resource resource,
String encoding)
|
static String |
FileUtils.readToString(Resource resource,
String encoding)
|
static void |
XmlUtils.registerConverter(com.thoughtworks.xstream.converters.Converter converter)
Adds a new converter into converters registry.
|
static void |
XmlUtils.registerConverter(com.thoughtworks.xstream.converters.SingleValueConverter converter)
Adds a new converter into converters registry.
|
static boolean[] |
ArrayUtils.remove(boolean[] array,
int index)
Returns new array with the boolean under specified index removed.
|
static byte[] |
ArrayUtils.remove(byte[] array,
int index)
Returns new array with the byte under specified index removed.
|
static char[] |
ArrayUtils.remove(char[] array,
int index)
Returns new array with the char under specified index removed.
|
static double[] |
ArrayUtils.remove(double[] array,
int index)
Returns new array with the double under specified index removed.
|
static float[] |
ArrayUtils.remove(float[] array,
int index)
Returns new array with the float under specified index removed.
|
static int[] |
ArrayUtils.remove(int[] array,
int index)
Returns new array with the int under specified index removed.
|
static <T> T[] |
ArrayUtils.remove(T[] array,
int index)
Returns new array with the object under specified index removed.
|
static <T> T[] |
ArrayUtils.remove(T[] array,
T object)
Returns new array with the specified object removed.
|
static <T> boolean |
CollectionUtils.removeAll(Collection<T> collection,
Collection<T> objects)
Removes all objects from the specified list.
|
static <T> boolean |
CollectionUtils.removeAll(Collection<T> collection,
Collection<T> objects)
Removes all objects from the specified list.
|
static <T> boolean |
CollectionUtils.removeAll(Collection<T> collection,
T... objects)
Removes all objects from the specified list.
|
static <T> boolean |
CollectionUtils.removeAll(Collection<T> collection,
T... objects)
Removes all objects from the specified list.
|
static <K,V> void |
MapUtils.removeAllValues(Map<K,V> map,
V value)
Removes all map entries where value is the same as the specified one.
|
static String |
TextUtils.removeFirstLines(String text,
int count)
Returns text with first lines removed.
|
static String |
TextUtils.removeLineBreaks(String text)
Returns text with all line breaks removed.
|
static String |
TextUtils.removeSpacings(String text)
Returns text with all spacings removed.
|
static String |
TextUtils.replace(String text,
int index,
char character)
Returns text with replaced character at the specified index.
|
static String |
TextUtils.replaceAll(String text,
boolean ignoreCase,
String str,
Function<String,String> replacer)
Replaces all occurrences of str found in the specified text with provided text.
|
static String |
TextUtils.replaceAll(String text,
boolean ignoreCase,
String str,
Function<String,String> replacer)
Replaces all occurrences of str found in the specified text with provided text.
|
static String |
TextUtils.replaceAll(String text,
boolean ignoreCase,
String str,
Function<String,String> replacer)
Replaces all occurrences of str found in the specified text with provided text.
|
static String |
TextUtils.requireNonEmpty(String text,
String message)
Checks that the specified text is not
null or empty and throws a NullPointerException if it is. |
static String |
TextUtils.requireNonEmpty(String text,
Supplier<RuntimeException> exceptionSupplier)
Checks that the specified text is not
null or empty and throws a RuntimeException if it is. |
static <T extends Collection<?>> |
CollectionUtils.requireNotEmpty(T collection,
Supplier<RuntimeException> exceptionSupplier)
Checks that the specified
Collection is not empty and throws a customized RuntimeException if it is. |
static ImageIcon |
ImageUtils.rotateIcon180(Icon icon)
|
static ImageIcon |
ImageUtils.rotateIcon90CCW(Icon icon)
|
static ImageIcon |
ImageUtils.rotateIcon90CW(Icon icon)
|
static BufferedImage |
ImageUtils.rotateImage180(BufferedImage bufferedImage)
Returns new
BufferedImage with specified BufferedImage painted on it and rotated 180 degrees. |
static BufferedImage |
ImageUtils.rotateImage180(Image image)
Returns new
BufferedImage with specified Image painted on it and rotated 180 degrees. |
static BufferedImage |
ImageUtils.rotateImage90CCW(BufferedImage bufferedImage)
Returns new
BufferedImage with specified BufferedImage painted on it and rotated 90 degrees counter-clockwise. |
static BufferedImage |
ImageUtils.rotateImage90CCW(Image image)
Returns new
BufferedImage with specified Image painted on it and rotated 90 degrees counter-clockwise. |
static BufferedImage |
ImageUtils.rotateImage90CW(BufferedImage bufferedImage)
Returns new
BufferedImage with specified BufferedImage painted on it and rotated 90 degrees clockwise. |
static BufferedImage |
ImageUtils.rotateImage90CW(Image image)
Returns new
BufferedImage with specified Image painted on it and rotated 90 degrees clockwise. |
static <T> T |
CollectionUtils.roundRobin(int index,
List<T> items)
Returns item from the
List at the specified index. |
static <T> T |
ArrayUtils.roundRobin(int index,
T... items)
Returns item from the array at the specified index.
|
static void |
WebUtils.shareOnFb(String address)
Opens system default web-browser with Facebook share page.
|
static void |
WebUtils.shareOnTwitter(String address)
Opens system default web-browser with Twitter share page.
|
static void |
WebUtils.shareOnVk(String address)
Opens system default web-browser with VKontakte share page.
|
static String |
TextUtils.shortenText(String text,
int maxLength,
boolean addDots)
Returns shortened text.
|
static String |
TextUtils.shortenTextEnd(String text,
int maxLength,
boolean addDots)
Returns shortened text.
|
static void |
TimeUtils.showPassedNanoTime(boolean total,
String prefix)
Writes nanotime passed since either last pin request or last nanotime request if total is false to log with specified prefix.
|
static void |
TimeUtils.showPassedNanoTime(String prefix)
Writes nanotime passed since either last pin request or last nanotime request to log with specified prefix.
|
static void |
TimeUtils.showPassedTime(boolean total,
String prefix)
Writes time passed since either last pin request or last time request if total is false to log with specified prefix.
|
static void |
TimeUtils.showPassedTime(String prefix)
Writes time passed since either last pin request or last time request to log with specified prefix.
|
static Color |
ColorUtils.softColor(Color base)
|
static <T> List<T> |
CollectionUtils.sort(List<T> list,
Comparator<T>... comparators)
Sorts
List using the specified Comparators. |
static <T> List<T> |
CollectionUtils.sort(List<T> list,
Comparator<T>... comparators)
Sorts
List using the specified Comparators. |
static <T> List<T> |
CollectionUtils.sort(List<T> list,
Comparator<T> comparator)
Sorts
List using the specified Comparator. |
static List<Float> |
TextUtils.stringToFloatList(String string,
String separator)
Returns a list of float parts split using specified separator.
|
static List<Integer> |
TextUtils.stringToIntList(String string,
String separator)
Returns a list of integer parts split using specified separator.
|
static List<String> |
TextUtils.stringToList(String string,
String separator)
Returns a list of text parts split using specified separator.
|
static byte[] |
IOUtils.toByteArray(InputStream inputStream)
Returns contents of the specified
InputStream as a byte array. |
static BufferedImage |
ImageUtils.toCompatibleImage(BufferedImage bufferedImage)
Returns
BufferedImage compatible with default screen GraphicsConfiguration. |
static String |
ColorUtils.toHex(Color color)
Returns hex string for the specified
Color. |
static int[] |
CollectionUtils.toIntArray(Collection<Integer> collection)
|
static <T> ArrayList<T> |
CollectionUtils.toList(Collection<T> collection)
Returns
List of objects converted from Collection. |
static <T> ArrayList<T> |
CollectionUtils.toList(T[] array)
|
static BufferedImage |
ImageUtils.toNonNullBufferedImage(Icon icon)
Returns
BufferedImage converted from the specified Icon. |
static BufferedImage |
ImageUtils.toNonNullBufferedImage(Image image)
Returns
BufferedImage converted from the specified Image. |
static BufferedImage |
ImageUtils.toNonNullBufferedImage(RenderedImage renderedImage)
Returns
BufferedImage converted from the specified RenderedImage. |
static ImageIcon |
ImageUtils.toNonNullImageIcon(Icon icon)
|
static ImageIcon |
ImageUtils.toNonNullImageIcon(Image image)
|
static Object[] |
CollectionUtils.toObjectArray(Collection collection)
|
static String |
ColorUtils.toRGBA(Color color)
Returns RGBA color string for the specified
Color. |
static String |
ColorUtils.toRGBA(Color color,
String separator)
Returns RGBA color string for the specified
Color. |
static String |
ColorUtils.toRGBA(Color color,
String separator)
Returns RGBA color string for the specified
Color. |
static <T> ArrayList<String> |
CollectionUtils.toStringList(List<T> list,
Function<T,String> textProvider)
|
static <T> ArrayList<String> |
CollectionUtils.toStringList(List<T> list,
Function<T,String> textProvider)
|
static URI |
NetUtils.toURI(URL url)
Returns URI for the specified address.
|
static <T> Vector<T> |
CollectionUtils.toVector(Collection<T> collection)
Returns a vector of objects converted from collection.
|
static String |
XmlUtils.toXML(Object obj)
Returns Object serialized into XML.
|
static void |
XmlUtils.toXML(Object obj,
File file)
Serializes Object into XML and writes it into specified file.
|
static void |
XmlUtils.toXML(Object obj,
File file)
Serializes Object into XML and writes it into specified file.
|
static void |
XmlUtils.toXML(Object obj,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
Serializes Object into XML and writes it using a specified HierarchicalStreamWriter
|
static void |
XmlUtils.toXML(Object obj,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
Serializes Object into XML and writes it using a specified HierarchicalStreamWriter
|
static void |
XmlUtils.toXML(Object obj,
OutputStream out)
Serializes Object into XML and writes it using a specified OutputStream.
|
static void |
XmlUtils.toXML(Object obj,
OutputStream out)
Serializes Object into XML and writes it using a specified OutputStream.
|
static void |
XmlUtils.toXML(Object obj,
String file)
Serializes Object into XML and writes it into specified file.
|
static void |
XmlUtils.toXML(Object obj,
String file)
Serializes Object into XML and writes it into specified file.
|
static void |
XmlUtils.toXML(Object obj,
Writer out)
Serializes Object into XML and writes it using a specified Writer.
|
static void |
XmlUtils.toXML(Object obj,
Writer out)
Serializes Object into XML and writes it using a specified Writer.
|
static WebTimer |
FileUtils.trackFile(File file,
SystemFileListener listener)
Starts tracking file for possible changes.
|
static WebTimer |
FileUtils.trackFile(File file,
SystemFileListener listener)
Starts tracking file for possible changes.
|
static WebTimer |
FileUtils.trackFile(File file,
SystemFileListener listener,
long delay)
Starts tracking file for possible changes.
|
static WebTimer |
FileUtils.trackFile(File file,
SystemFileListener listener,
long delay)
Starts tracking file for possible changes.
|
static AbstractFileFilter |
FileUtils.transformFileFilter(FileFilter fileFilter)
Returns transformed file filter.
|
static AbstractFileFilter |
FileUtils.transformFileFilter(FileFilter fileFilter)
Returns transformed file filter.
|
static Color |
ColorUtils.transparent(Color color,
int alpha)
Returns
Color with modified alpha value. |
static String |
TextUtils.unite(String separator,
String... parts)
Converts and returns specified parts which are not null into single string.
|
static void |
ZipUtils.unzip(File archive,
File dst)
Extracts ZIP archive contents into destination directory.
|
static void |
ZipUtils.unzip(File archive,
File dst)
Extracts ZIP archive contents into destination directory.
|
static void |
ZipUtils.unzip(File archive,
File dst,
UnzipListener listener)
Extracts ZIP archive contents into destination directory.
|
static void |
ZipUtils.unzip(File archive,
File dst,
UnzipListener listener)
Extracts ZIP archive contents into destination directory.
|
static void |
ZipUtils.unzip(String archive,
String dst)
Extracts ZIP archive contents into destination directory.
|
static void |
ZipUtils.unzip(String archive,
String dst)
Extracts ZIP archive contents into destination directory.
|
static void |
ZipUtils.unzip(String archive,
String dst,
UnzipListener listener)
Extracts ZIP archive contents into destination directory.
|
static void |
ZipUtils.unzip(String archive,
String dst,
UnzipListener listener)
Extracts ZIP archive contents into destination directory.
|
static void |
XmlUtils.useAttributeFor(Class type,
String field)
Use an attribute for a field declared in a specific type.
|
static void |
XmlUtils.useAttributeFor(Class type,
String field)
Use an attribute for a field declared in a specific type.
|
static <K,V> ArrayList<V> |
CollectionUtils.valuesList(Map<K,V> map)
Returns map values list.
|
static <K,V> ArrayList<V> |
CollectionUtils.valuesSummaryList(Map<K,List<V>> map)
Returns map values summary list with unique elements only.
|
static Color |
ColorUtils.webSafe(Color color)
Returns web-safe
Color. |
static void |
WebUtils.writeEmail(String email)
Opens system mail agent to compose a new letter
|
static void |
WebUtils.writeEmail(String email,
String subject,
String body)
Opens system mail agent to compose a new letter
|
static void |
WebUtils.writeEmailSafely(String email)
Opens system mail agent to compose a new letter safely
|
static void |
WebUtils.writeEmailSafely(String email,
String subject,
String body)
Opens system mail agent to compose a new letter safely
|
static void |
FileUtils.writeStringToFile(String text,
File file)
Writes text to the specified file overwriting any content inside the file.
|
static void |
FileUtils.writeStringToFile(String text,
File file)
Writes text to the specified file overwriting any content inside the file.
|
static void |
FileUtils.writeStringToFile(String text,
File file,
String encoding)
Writes text to the specified file overwriting any content inside the file.
|
static void |
FileUtils.writeStringToFile(String text,
File file,
String encoding)
Writes text to the specified file overwriting any content inside the file.
|
static void |
FileUtils.writeStringToFile(String text,
File file,
String encoding)
Writes text to the specified file overwriting any content inside the file.
|
static String |
EncryptionUtils.xorText(String text,
String key)
Returns text encrypted using xor.
|
| Constructor and Description |
|---|
UtilityException(String message)
Constructs a new
UtilityException with the specified detail message. |
UtilityException(String message,
Throwable cause)
Constructs a new
UtilityException with the specified detail message and cause. |
UtilityException(String message,
Throwable cause)
Constructs a new
UtilityException with the specified detail message and cause. |
UtilityException(Throwable cause)
Constructs a new
UtilityException with the specified cause. |
| Modifier and Type | Field and Description |
|---|---|
protected E[] |
ImmutableCollection.data
Collection data. |
protected E[] |
ImmutableList.data
List data. |
protected HashSet<E> |
ImmutableSet.data
Set data. |
protected Set<E> |
WeakHashSet.keySet
Set of keys. |
protected WeakHashMap<E,Boolean> |
WeakHashSet.map
WeakHashMap that backs this WeakHashSet. |
| Modifier and Type | Method and Description |
|---|---|
protected UnsupportedOperationException |
ImmutableCollection.createModificationException()
Returns new
UnsupportedOperationException instance specific for this implementation. |
protected UnsupportedOperationException |
ImmutableList.createModificationException()
Returns new
UnsupportedOperationException instance specific for this implementation. |
protected UnsupportedOperationException |
ImmutableSet.createModificationException()
Returns new
UnsupportedOperationException instance specific for this implementation. |
static <E> EmptyIterator<E> |
EmptyIterator.instance()
Returns
EmptyIterator instance. |
static <E> Enumeration<E> |
EmptyEnumeration.instance()
Returns
EmptyEnumeration instance. |
Iterator<E> |
ImmutableCollection.iterator() |
Iterator<E> |
ImmutableList.iterator() |
Iterator<E> |
WeakHashSet.iterator() |
Iterator<E> |
ImmutableSet.iterator() |
ListIterator<E> |
ImmutableList.listIterator() |
ListIterator<E> |
ImmutableList.listIterator(int index) |
List<E> |
ImmutableList.subList(int fromIndex,
int toIndex) |
Object[] |
ImmutableCollection.toArray() |
Object[] |
ImmutableList.toArray() |
Object[] |
WeakHashSet.toArray() |
Object[] |
ImmutableSet.toArray() |
<T> T[] |
ImmutableCollection.toArray(T[] array) |
<T> T[] |
ImmutableList.toArray(T[] array) |
<T> T[] |
WeakHashSet.toArray(T[] a) |
<T> T[] |
ImmutableSet.toArray(T[] array) |
String |
ImmutableCollection.toString() |
String |
ImmutableList.toString() |
String |
WeakHashSet.toString() |
String |
ImmutableSet.toString() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ImmutableCollection.addAll(Collection<? extends E> collection) |
boolean |
ImmutableList.addAll(Collection<? extends E> collection) |
boolean |
ImmutableSet.addAll(Collection<? extends E> collection) |
boolean |
ImmutableList.addAll(int index,
Collection<? extends E> c) |
boolean |
ImmutableCollection.containsAll(Collection<?> collection) |
boolean |
ImmutableList.containsAll(Collection<?> collection) |
boolean |
WeakHashSet.containsAll(Collection<?> c) |
boolean |
ImmutableSet.containsAll(Collection<?> collection) |
boolean |
ImmutableCollection.removeAll(Collection<?> collection) |
boolean |
ImmutableList.removeAll(Collection<?> collection) |
boolean |
WeakHashSet.removeAll(Collection<?> c) |
boolean |
ImmutableSet.removeAll(Collection<?> collection) |
boolean |
ImmutableCollection.retainAll(Collection<?> collection) |
boolean |
ImmutableList.retainAll(Collection<?> collection) |
boolean |
WeakHashSet.retainAll(Collection<?> c) |
boolean |
ImmutableSet.retainAll(Collection<?> collection) |
<T> T[] |
ImmutableList.toArray(T[] array) |
<T> T[] |
WeakHashSet.toArray(T[] a) |
<T> T[] |
ImmutableSet.toArray(T[] array) |
| Constructor and Description |
|---|
ImmutableCollection(Collection<? extends E> collection)
Constructs new
ImmutableCollection based on the specified Collection. |
ImmutableCollection(E... data)
Constructs new
ImmutableCollection based on the specified collection data. |
ImmutableList(Collection<? extends E> collection)
Constructs new
ImmutableList based on the specified Collection. |
ImmutableList(E... data)
Constructs new
ImmutableList based on the specified list data. |
ImmutableSet(Collection<? extends E> data)
Constructs new
ImmutableSet based on the specified Set. |
ImmutableSet(E... data)
Constructs new
ImmutableSet based on the specified list data. |
| Modifier and Type | Method and Description |
|---|---|
Thread |
DaemonThreadFactory.newThread(Runnable runnable)
Constructs a new daemon thread.
|
| Modifier and Type | Method and Description |
|---|---|
Thread |
DaemonThreadFactory.newThread(Runnable runnable)
Constructs a new daemon thread.
|
| Constructor and Description |
|---|
DaemonThreadFactory(String name)
Constructs new
DaemonThreadFactory. |
DaemonThreadFactory(Supplier<String> nameSupplier)
Constructs new
DaemonThreadFactory. |
| Modifier and Type | Method and Description |
|---|---|
void |
FileDownloadListener.fileDownloaded(File file)
Called when file download completed.
|
void |
FileDownloadListener.fileDownloadFailed(Throwable e)
Called when file download has failed.
|
| Modifier and Type | Method and Description |
|---|---|
String |
DirectoriesFilter.getDescription() |
String |
AllFilesFilter.getDescription() |
String |
NonHiddenFilter.getDescription() |
abstract String |
AbstractFileFilter.getDescription()
Returns short file filter description.
|
String |
GroupedFileFilter.getDescription() |
String |
FilesFilter.getDescription() |
String |
DescriptiveFileFilter.getDescription() |
String |
ImageFilesFilter.getDescription() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
DirectoriesFilter.accept(File file) |
boolean |
AllFilesFilter.accept(File file) |
boolean |
NonHiddenFilter.accept(File file) |
abstract boolean |
AbstractFileFilter.accept(File file)
Returns whether the given file is accepted by this filter or not.
|
boolean |
IOFileFilterAdapter.accept(File file) |
boolean |
GroupedFileFilter.accept(File file) |
boolean |
SwingFileFilterAdapter.accept(File file) |
boolean |
FilesFilter.accept(File file) |
boolean |
ImageFilesFilter.accept(File file) |
Icon |
DirectoriesFilter.getIcon(RenderingParameters parameters) |
Icon |
AllFilesFilter.getIcon(RenderingParameters parameters) |
Icon |
NonHiddenFilter.getIcon(RenderingParameters parameters) |
abstract Icon |
AbstractFileFilter.getIcon(RenderingParameters parameters)
Returns file filter
Icon. |
Icon |
GroupedFileFilter.getIcon(RenderingParameters parameters) |
Icon |
FilesFilter.getIcon(RenderingParameters parameters) |
Icon |
DescriptiveFileFilter.getIcon(RenderingParameters parameters) |
Icon |
ImageFilesFilter.getIcon(RenderingParameters parameters) |
String |
AbstractFileFilter.getText(RenderingParameters parameters)
Returns file filter title.
|
| Modifier and Type | Method and Description |
|---|---|
String |
Pair.toString() |
| Modifier and Type | Field and Description |
|---|---|
protected String |
JarEntry.id
Unique JAR entry ID.
|
protected String |
JarStructure.jarLocation
Location of JAR file which structure is represented by this object.
|
protected String |
JarEntry.name
JAR entry name.
|
protected JarEntry |
JarStructure.root
Root
JarEntry. |
protected JarStructure |
JarEntry.structure
JAR structure this entry belongs to.
|
protected JarEntryType |
JarEntry.type
JAR entry type.
|
| Modifier and Type | Method and Description |
|---|---|
String |
JarEntry.getCanonicalEntryName()
Returns
JarEntry canonical name. |
String |
JarEntry.getCanonicalEntryPath()
Returns
JarEntry canonical path. |
JarEntry |
JarEntry.getChildByName(String name)
Returns child
JarEntry with the specfiied name or null if it cannot be found. |
JarEntry |
JarStructure.getChildByName(String name)
Returns child
JarEntry with the specfiied name or null if it cannot be found. |
JarEntry |
JarEntry.getChildByName(String name,
boolean recursively)
Returns child
JarEntry with the specfiied name or null if it cannot be found. |
JarEntry |
JarStructure.getChildByName(String name,
boolean recursively)
Returns child
JarEntry with the specfiied name or null if it cannot be found. |
List<JarEntry> |
JarStructure.getChildEntries()
|
List<JarEntry> |
JarEntry.getChildren()
Returns copy of children
JarEntrys. |
String |
JarEntry.getEntryExtension()
|
Icon |
JarEntry.getIcon()
Returns
JarEntry icon. |
Icon |
JarEntryType.getIcon()
Returns JAR entry type icon.
|
String |
JarEntry.getId() |
InputStream |
JarEntry.getInputStream()
Returns
JarEntry content InputStream. |
String |
JarStructure.getJarLocation()
Returns JAR file location.
|
String |
JarEntry.getName()
Returns
JarEntry name. |
List<JarEntry> |
JarEntry.getPath()
|
JarEntry |
JarStructure.getRoot()
Returns root
JarEntry of JarEntryType.JAR representing JAR itself. |
JarEntryType |
JarEntry.getType()
Returns
JarEntryType. |
String |
JarEntry.toString() |
| Modifier and Type | Method and Description |
|---|---|
void |
JarEntry.addChild(JarEntry child)
Adds child
JarEntry. |
JarEntry |
JarStructure.getClassEntry(Class<?> forClass)
|
JarEntry |
JarStructure.getPackageEntry(Package forPackage)
|
JarEntry |
JarStructure.getPackageEntry(String forPackage)
|
void |
JarEntry.removeChild(JarEntry child)
Removes child
JarEntry. |
void |
JarStructure.setClassIcon(Class<?> forClass,
Icon icon)
|
void |
JarStructure.setClassIcon(Class<?> forClass,
Icon icon)
|
void |
JarEntry.setName(String name)
Sets custom
JarEntry name. |
void |
JarStructure.setPackageIcon(Package forPackage,
Icon icon)
|
void |
JarStructure.setPackageIcon(Package forPackage,
Icon icon)
|
void |
JarStructure.setPackageIcon(String forPackage,
Icon icon)
|
void |
JarStructure.setPackageIcon(String forPackage,
Icon icon)
|
| Constructor and Description |
|---|
JarEntry(JarStructure structure,
JarEntryType type,
String name)
Constructs new
JarEntry. |
JarEntry(JarStructure structure,
JarEntryType type,
String name)
Constructs new
JarEntry. |
JarEntry(JarStructure structure,
JarEntryType type,
String name)
Constructs new
JarEntry. |
JarEntry(JarStructure structure,
JarEntry parent,
ZipEntry zipEntry,
JarEntryType type,
String name)
Constructs new
JarEntry. |
JarEntry(JarStructure structure,
JarEntry parent,
ZipEntry zipEntry,
JarEntryType type,
String name)
Constructs new
JarEntry. |
JarEntry(JarStructure structure,
JarEntry parent,
ZipEntry zipEntry,
JarEntryType type,
String name)
Constructs new
JarEntry. |
JarStructure(Class jarClass)
Constructs new
JarStructure. |
JarStructure(Class jarClass,
List<String> allowedExtensions,
List<String> allowedPackages)
Constructs new
JarStructure. |
JarStructure(Class jarClass,
List<String> allowedExtensions,
List<String> allowedPackages,
FileDownloadListener listener)
Constructs new
JarStructure. |
| Constructor and Description |
|---|
AbstractHashMap(Map map)
Constructor copying elements from another map.
|
StrictHashMap(Map map)
Constructs new
StrictHashMap. |
| Modifier and Type | Field and Description |
|---|---|
protected List<AbstractUnits.Unit> |
AbstractUnits.units
Supported
AbstractUnits.Units. |
| Modifier and Type | Method and Description |
|---|---|
String |
AbstractUnits.toString(long value)
Returns user-friendly unit-based text of the
long value. |
| Modifier and Type | Method and Description |
|---|---|
int |
AbstractUnits.Unit.compareTo(AbstractUnits.Unit other) |
long |
AbstractUnits.fromString(String text)
Returns single
long value parsed from user-friendly unit-based text. |
long |
AbstractUnits.Unit.fromString(String value)
Returns base
long value calculated from the unit String value. |
boolean |
AbstractUnits.Unit.uses(String name)
Returns whether or not this
AbstractUnits.Unit uses specified name. |
| Constructor and Description |
|---|
AbstractUnits(AbstractUnits.Unit... units)
Constructs new
AbstractUnits. |
AbstractUnits(List<AbstractUnits.Unit> units)
Constructs new
AbstractUnits. |
Unit(long amount,
long limit,
String... names)
Constructs new
AbstractUnits.Unit. |
UnitsParsingException(String message)
Constructs new
UnitsParsingException. |
UnitsParsingException(String message,
Throwable cause)
Constructs new
UnitsParsingException. |
UnitsParsingException(String message,
Throwable cause)
Constructs new
UnitsParsingException. |
UnitsParsingException(Throwable cause)
Constructs new
UnitsParsingException. |
| Modifier and Type | Method and Description |
|---|---|
T |
LazyInstance.create()
Returns new object instance.
|
T |
LazyInstance.get()
Returns singleton object instance.
|
| Constructor and Description |
|---|
LazyInstance(Class<? extends T> clazz,
Object... arguments)
Constructs new
LazyInstance. |
LazyInstance(Class<? extends T> clazz,
Object... arguments)
Constructs new
LazyInstance. |
| Modifier and Type | Field and Description |
|---|---|
protected String |
WebTimer.actionCommand
Action command for fired events.
|
protected Set<C> |
WeakComponentData.components
Set of JComponents that have data of this kind stored within them. |
protected String |
WeakComponentData.key
Key used to place data within
JComponent using JComponent.putClientProperty(Object, Object) method. |
protected String |
WebTimer.name
Internal timer thread name.
|
protected Map<Integer,Boolean> |
WebTimer.running
Map of marks for currently active threads.
|
| Modifier and Type | Method and Description |
|---|---|
WebTimer |
WebTimer.addActionListener(ActionListener listener)
Adds new action listener.
|
InsetsUIResource |
InsetsUIResource.clone(RecursiveClone clone,
int depth) |
ColorUIResource |
ColorUIResource.clone(RecursiveClone clone,
int depth) |
Set<C> |
WeakComponentData.components()
Returns
Set of JComponents that have data of this kind stored within them. |
protected ActionEvent |
WebTimer.createActionEvent()
Returns action event.
|
D |
WeakComponentData.get(C component,
Function<C,D> defaultData)
Returns data stored in the
JComponent. |
String |
WebTimer.getActionCommand()
Returns action command for fired events.
|
static <E extends Enum<E>> |
EnumLazyIconProvider.getIcon(E enumeration,
String folder)
Returns cached or just loaded enum icon.
|
static <E extends Enum<E>> |
EnumLazyIconProvider.getIcon(E enumeration,
String state,
String folder)
Returns cached or just loaded enum icon for the specified state.
|
static <E extends Enum<E>> |
EnumLazyIconProvider.getIcon(E enumeration,
String state,
String folder,
String extension)
Returns cached or just loaded enum icon for the specified state.
|
String |
WebTimer.getInitialStringDelay()
Returns delay before the first timer cycle run.
|
List<ActionListener> |
WebTimer.getListeners()
Returns available action listeners list.
|
String |
WebTimer.getName()
Returns internal timer thread name.
|
String |
WebTimer.getStringDelay()
Returns delay between timer cycles.
|
D |
WeakComponentData.modify(C component,
BiFunction<C,D,D> modifiedData,
Function<C,D> defaultData)
Modifies data stored in the
JComponent using specified BiFunction and returns it. |
WebTimer |
WebTimer.removeActionListener(ActionListener listener)
Removes an action listener.
|
WebTimer |
WebTimer.restart()
Restarts timer execution.
|
WebTimer |
WebTimer.restart(long delay)
Restarts timer execution and modifies timer delay.
|
WebTimer |
WebTimer.restart(long initialDelay,
long delay)
Restarts timer execution and modifies timer delays.
|
WebTimer |
WebTimer.restart(String delay)
Restarts timer execution and modifies timer delay.
|
WebTimer |
WebTimer.restart(String initialDelay,
String delay)
Restarts timer execution and modifies timer delays.
|
WebTimer |
WebTimer.setActionCommand(String actionCommand)
Sets action command for fired events.
|
WebTimer |
WebTimer.setCoalesce(boolean coalesce)
Sets whether each action should be fired from a separate invoke and wait call or not.
|
WebTimer |
WebTimer.setCyclesLimit(int cyclesLimit)
Sets timer cycles execution limit.
|
WebTimer |
WebTimer.setDelay(long delay)
Sets delay between timer cycles in milliseconds.
|
WebTimer |
WebTimer.setDelay(String delay)
Sets delay between timer cycles.
|
WebTimer |
WebTimer.setInitialDelay(long initialDelay)
Sets delay before the first timer cycle run in milliseconds.
|
WebTimer |
WebTimer.setInitialDelay(String initialDelay)
Sets delay before the first timer cycle run.
|
WebTimer |
WebTimer.setName(String name)
Sets internal timer thread name.
|
WebTimer |
WebTimer.setNonBlockingStop(boolean nonBlockingStop)
Sets whether or not timer should use non-blocking stop method behavior.
|
WebTimer |
WebTimer.setRepeats(boolean repeats)
Sets whether timer should repeat its cycles or not.
|
WebTimer |
WebTimer.setUseDaemonThread(boolean useDaemonThread)
Returns whether should use daemon thread instead of user one or not.
|
WebTimer |
WebTimer.setUseEventDispatchThread(boolean useEventDispatchThread)
Sets whether actions should be fired from Event Dispatch Thread or not.
|
WebTimer |
WebTimer.start()
Starts timer execution.
|
WebTimer |
WebTimer.stop()
Stops timer execution.
|
String |
WebTimer.toString() |
| Modifier and Type | Method and Description |
|---|---|
void |
WeakComponentDataList.add(C component,
E data)
Stores data for the specified
JComponent. |
void |
WeakComponentDataList.add(C component,
E data)
Stores data for the specified
JComponent. |
WebTimer |
WebTimer.addActionListener(ActionListener listener)
Adds new action listener.
|
boolean |
WeakComponentDataList.allDataMatch(BiPredicate<C,E> predicate)
Returns whether or not all of the stored data pieces are accepted by specified
BiPredicate. |
boolean |
WeakComponentDataList.allDataMatch(C component,
BiPredicate<C,E> predicate)
Returns whether or not all of the data pieces stored for specified
JComponent are accepted by BiPredicate. |
boolean |
WeakComponentDataList.allDataMatch(C component,
BiPredicate<C,E> predicate)
Returns whether or not all of the data pieces stored for specified
JComponent are accepted by BiPredicate. |
boolean |
WeakComponentData.allMatch(BiPredicate<C,D> predicate)
Returns whether or not all of the stored data pieces are accepted by specified
BiPredicate. |
boolean |
WeakComponentDataList.anyDataMatch(BiPredicate<C,E> predicate)
Returns whether or not at least one of the stored data pieces is accepted by specified
BiPredicate. |
boolean |
WeakComponentDataList.anyDataMatch(C component,
BiPredicate<C,E> predicate)
Returns whether or not at least one of the data pieces stored for specified
JComponent is accepted by BiPredicate. |
boolean |
WeakComponentDataList.anyDataMatch(C component,
BiPredicate<C,E> predicate)
Returns whether or not at least one of the data pieces stored for specified
JComponent is accepted by BiPredicate. |
boolean |
WeakComponentData.anyMatch(BiPredicate<C,D> predicate)
Returns whether or not at least one of the stored data pieces is accepted by specified
BiPredicate. |
D |
WeakComponentData.clear(C component)
Clears data stored in the
JComponent. |
D |
WeakComponentData.clear(C component,
BiConsumer<C,D> removedDataConsumer)
Clears data stored in the
JComponent. |
D |
WeakComponentData.clear(C component,
BiConsumer<C,D> removedDataConsumer)
Clears data stored in the
JComponent. |
InsetsUIResource |
InsetsUIResource.clone(RecursiveClone clone,
int depth) |
ColorUIResource |
ColorUIResource.clone(RecursiveClone clone,
int depth) |
boolean |
WeakComponentData.contains(C component)
Returns whether or not specified
JComponent has data of this kind stored within. |
boolean |
WeakComponentDataList.containsData(C component)
Returns whether or not
JComponent has any data of this kind stored within. |
boolean |
WeakComponentDataList.containsData(C component,
E data)
Returns whether or not
JComponent has specified data stored within. |
boolean |
WeakComponentDataList.containsData(C component,
E data)
Returns whether or not
JComponent has specified data stored within. |
void |
Customizer.customize(T object)
Customizes the specified object.
|
static WebTimer |
WebTimer.delay(String delay,
ActionListener listener)
Returns newly created and started timer that doesn't repeat and has the specified delay and action listener.
|
static WebTimer |
WebTimer.delay(String delay,
boolean useEventDispatchThread,
ActionListener listener)
Returns newly created and started timer that doesn't repeat and has the specified delay and action listener.
|
static WebTimer |
WebTimer.delay(String name,
long delay,
ActionListener listener)
Returns newly created and started timer that doesn't repeat and has the specified delay and action listener.
|
static WebTimer |
WebTimer.delay(String name,
long delay,
boolean useEventDispatchThread,
ActionListener listener)
Returns newly created and started timer that doesn't repeat and has the specified delay and action listener.
|
static WebTimer |
WebTimer.delay(String name,
String delay,
ActionListener listener)
Returns newly created and started timer that doesn't repeat and has the specified delay and action listener.
|
static WebTimer |
WebTimer.delay(String name,
String delay,
ActionListener listener)
Returns newly created and started timer that doesn't repeat and has the specified delay and action listener.
|
static WebTimer |
WebTimer.delay(String name,
String delay,
boolean useEventDispatchThread,
ActionListener listener)
Returns newly created and started timer that doesn't repeat and has the specified delay and action listener.
|
static WebTimer |
WebTimer.delay(String name,
String delay,
boolean useEventDispatchThread,
ActionListener listener)
Returns newly created and started timer that doesn't repeat and has the specified delay and action listener.
|
void |
WeakComponentData.forEach(BiConsumer<C,D> consumer)
Provides each stored data piece into specified
BiConsumer. |
void |
WeakComponentDataList.forEachData(BiConsumer<C,E> consumer)
Provides every stored data piece into specified
BiConsumer. |
void |
WeakComponentDataList.forEachData(C component,
BiConsumer<C,E> consumer)
Provides data pieces stored for specified
JComponent into BiConsumer. |
void |
WeakComponentDataList.forEachData(C component,
BiConsumer<C,E> consumer)
Provides data pieces stored for specified
JComponent into BiConsumer. |
D |
WeakComponentData.get(C component)
Returns data stored in the
JComponent. |
D |
WeakComponentData.get(C component,
Function<C,D> defaultData)
Returns data stored in the
JComponent. |
D |
WeakComponentData.get(C component,
Function<C,D> defaultData)
Returns data stored in the
JComponent. |
static <E extends Enum<E>> |
EnumLazyIconProvider.getIcon(E enumeration,
String folder)
Returns cached or just loaded enum icon.
|
static <E extends Enum<E>> |
EnumLazyIconProvider.getIcon(E enumeration,
String folder)
Returns cached or just loaded enum icon.
|
static <E extends Enum<E>> |
EnumLazyIconProvider.getIcon(E enumeration,
String state,
String folder)
Returns cached or just loaded enum icon for the specified state.
|
static <E extends Enum<E>> |
EnumLazyIconProvider.getIcon(E enumeration,
String state,
String folder)
Returns cached or just loaded enum icon for the specified state.
|
static <E extends Enum<E>> |
EnumLazyIconProvider.getIcon(E enumeration,
String state,
String folder,
String extension)
Returns cached or just loaded enum icon for the specified state.
|
static <E extends Enum<E>> |
EnumLazyIconProvider.getIcon(E enumeration,
String state,
String folder,
String extension)
Returns cached or just loaded enum icon for the specified state.
|
static <E extends Enum<E>> |
EnumLazyIconProvider.getIcon(E enumeration,
String state,
String folder,
String extension)
Returns cached or just loaded enum icon for the specified state.
|
D |
WeakComponentData.modify(C component,
BiFunction<C,D,D> modifiedData,
Function<C,D> defaultData)
Modifies data stored in the
JComponent using specified BiFunction and returns it. |
D |
WeakComponentData.modify(C component,
BiFunction<C,D,D> modifiedData,
Function<C,D> defaultData)
Modifies data stored in the
JComponent using specified BiFunction and returns it. |
D |
WeakComponentData.modify(C component,
BiFunction<C,D,D> modifiedData,
Function<C,D> defaultData)
Modifies data stored in the
JComponent using specified BiFunction and returns it. |
boolean |
WeakComponentDataList.noneDataMatch(BiPredicate<C,E> predicate)
Returns whether or not none of the stored data pieces are accepted by specified
BiPredicate. |
boolean |
WeakComponentDataList.noneDataMatch(C component,
BiPredicate<C,E> predicate)
Returns whether or not none of the data pieces stored for specified
JComponent are accepted by BiPredicate. |
boolean |
WeakComponentDataList.noneDataMatch(C component,
BiPredicate<C,E> predicate)
Returns whether or not none of the data pieces stored for specified
JComponent are accepted by BiPredicate. |
boolean |
WeakComponentData.noneMatch(BiPredicate<C,D> predicate)
Returns whether or not none of the stored data pieces are accepted by specified
BiPredicate. |
void |
WeakComponentDataList.remove(C component,
E data)
Removes data from the specified
JComponent. |
void |
WeakComponentDataList.remove(C component,
E data)
Removes data from the specified
JComponent. |
void |
WeakComponentDataList.remove(C component,
E data,
BiConsumer<C,E> removedDataConsumer)
Removes data from the specified
JComponent. |
void |
WeakComponentDataList.remove(C component,
E data,
BiConsumer<C,E> removedDataConsumer)
Removes data from the specified
JComponent. |
void |
WeakComponentDataList.remove(C component,
E data,
BiConsumer<C,E> removedDataConsumer)
Removes data from the specified
JComponent. |
WebTimer |
WebTimer.removeActionListener(ActionListener listener)
Removes an action listener.
|
static WebTimer |
WebTimer.repeat(boolean useDaemonThread,
String name,
long delay,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay, initial delay and action listener.
|
static WebTimer |
WebTimer.repeat(boolean useDaemonThread,
String name,
long delay,
long initialDelay,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay, initial delay and action listener.
|
static WebTimer |
WebTimer.repeat(boolean useDaemonThread,
String name,
long delay,
long initialDelay,
int cyclesLimit,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay, initial delay and action listener.
|
static WebTimer |
WebTimer.repeat(String delay,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay and action listener.
|
static WebTimer |
WebTimer.repeat(String delay,
boolean useEventDispatchThread,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay and action listener.
|
static WebTimer |
WebTimer.repeat(String delay,
int cyclesLimit,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay and action listener.
|
static WebTimer |
WebTimer.repeat(String delay,
int cyclesLimit,
boolean useEventDispatchThread,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay and action listener.
|
static WebTimer |
WebTimer.repeat(String name,
long delay,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay and action listener.
|
static WebTimer |
WebTimer.repeat(String name,
long delay,
boolean useEventDispatchThread,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay and action listener.
|
static WebTimer |
WebTimer.repeat(String name,
long delay,
int cyclesLimit,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay and action listener.
|
static WebTimer |
WebTimer.repeat(String name,
long delay,
int cyclesLimit,
boolean useEventDispatchThread,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay and action listener.
|
static WebTimer |
WebTimer.repeat(String name,
long delay,
long initialDelay,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay, initial delay and action listener.
|
static WebTimer |
WebTimer.repeat(String name,
long delay,
long initialDelay,
boolean useEventDispatchThread,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay, initial delay and action listener.
|
static WebTimer |
WebTimer.repeat(String name,
long delay,
long initialDelay,
int cyclesLimit,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay, initial delay and action listener.
|
static WebTimer |
WebTimer.repeat(String name,
long delay,
long initialDelay,
int cyclesLimit,
boolean useEventDispatchThread,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay, initial delay and action listener.
|
static WebTimer |
WebTimer.repeat(String name,
String delay,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay and action listener.
|
static WebTimer |
WebTimer.repeat(String name,
String delay,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay and action listener.
|
static WebTimer |
WebTimer.repeat(String name,
String delay,
boolean useEventDispatchThread,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay and action listener.
|
static WebTimer |
WebTimer.repeat(String name,
String delay,
boolean useEventDispatchThread,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay and action listener.
|
static WebTimer |
WebTimer.repeat(String name,
String delay,
int cyclesLimit,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay and action listener.
|
static WebTimer |
WebTimer.repeat(String name,
String delay,
int cyclesLimit,
boolean useEventDispatchThread,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay and action listener.
|
static WebTimer |
WebTimer.repeat(String name,
String delay,
int cyclesLimit,
boolean useEventDispatchThread,
ActionListener listener)
Returns newly created and started timer that repeats and has the specified delay and action listener.
|
WebTimer |
WebTimer.restart(String delay)
Restarts timer execution and modifies timer delay.
|
WebTimer |
WebTimer.restart(String initialDelay,
String delay)
Restarts timer execution and modifies timer delays.
|
WebTimer |
WebTimer.restart(String initialDelay,
String delay)
Restarts timer execution and modifies timer delays.
|
D |
WeakComponentData.set(C component,
D data)
Stores data in the specified
JComponent. |
D |
WeakComponentData.set(C component,
D data,
BiConsumer<C,D> oldDataConsumer)
Stores data in the specified
JComponent. |
D |
WeakComponentData.set(C component,
D data,
BiConsumer<C,D> oldDataConsumer)
Stores data in the specified
JComponent. |
WebTimer |
WebTimer.setActionCommand(String actionCommand)
Sets action command for fired events.
|
WebTimer |
WebTimer.setDelay(String delay)
Sets delay between timer cycles.
|
WebTimer |
WebTimer.setInitialDelay(String initialDelay)
Sets delay before the first timer cycle run.
|
WebTimer |
WebTimer.setName(String name)
Sets internal timer thread name.
|
int |
WeakComponentDataList.size(C component)
Returns size of data list stored within
JComponent. |
| Constructor and Description |
|---|
InsetsUIResource(Insets insets)
Constructs new
InsetsUIResource. |
WeakComponentData(String key,
int initialCapacity)
Constructs new
WeakComponentData. |
WeakComponentDataList(String key,
int initialCapacity)
Constructs new
WeakComponentDataList. |
WebTimer(String delay)
Constructs timer with specified delay.
|
WebTimer(String delay,
ActionListener listener)
Constructs timer with specified delay and action listener.
|
WebTimer(String name,
long delay)
Constructs timer with specified internal thread name and delay.
|
WebTimer(String name,
long delay,
ActionListener listener)
Constructs timer with specified internal thread name, delay and action listener.
|
WebTimer(String name,
long delay,
long initialDelay)
Constructs timer with specified internal thread name, delay and initial delay.
|
WebTimer(String name,
long delay,
long initialDelay,
ActionListener listener)
Constructs timer with specified internal thread name, delay, initial delay and action listener.
|
WebTimer(String name,
String delay)
Constructs timer with specified internal thread name and delay.
|
WebTimer(String name,
String delay)
Constructs timer with specified internal thread name and delay.
|
WebTimer(String name,
String delay,
ActionListener listener)
Constructs timer with specified internal thread name, delay and action listener.
|
WebTimer(String name,
String delay,
ActionListener listener)
Constructs timer with specified internal thread name, delay and action listener.
|
WebTimer(String name,
String delay,
String initialDelay,
ActionListener listener)
Constructs timer with specified internal thread name, delay, initial delay and action listener.
|
WebTimer(String name,
String delay,
String initialDelay,
ActionListener listener)
Constructs timer with specified internal thread name, delay, initial delay and action listener.
|
| Modifier and Type | Method and Description |
|---|---|
String |
JavaVersion.toString() |
String |
JavaVersion.versionString()
Returns version
String only. |
| Modifier and Type | Method and Description |
|---|---|
static String |
ColorConverter.colorToString(Color color)
Convert specified
Color into string form. |
static Dimension |
DimensionConverter.dimensionFromString(String string)
Returns dimension read from string.
|
static String |
DimensionConverter.dimensionToString(Dimension dimension)
Returns dimension converted into string.
|
Object |
DimensionConverter.fromString(String dimension) |
Object |
ClassConverter.fromString(String s) |
static Insets |
InsetsConverter.insetsFromString(String string)
Returns
Insets read from string. |
static String |
InsetsConverter.insetsToString(Insets insets)
Returns
Insets converted into string. |
static Scale |
ScaleConverter.pointFromString(String point)
Returns
Scale read from string. |
static String |
ScaleConverter.pointToString(Scale point)
Returns
Scale converted into string. |
String |
DimensionConverter.toString(Object object) |
String |
ClassConverter.toString(Object o) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ScaleConverter.canConvert(Class type) |
boolean |
ColorConverter.canConvert(Class type) |
boolean |
DimensionConverter.canConvert(Class type) |
boolean |
InsetsConverter.canConvert(Class type) |
boolean |
ClassConverter.canConvert(Class aClass) |
static Dimension |
DimensionConverter.dimensionFromString(String string)
Returns dimension read from string.
|
Object |
ScaleConverter.fromString(String str) |
Object |
DimensionConverter.fromString(String dimension) |
Object |
InsetsConverter.fromString(String string) |
Object |
ClassConverter.fromString(String s) |
static Insets |
InsetsConverter.insetsFromString(String string)
Returns
Insets read from string. |
static String |
InsetsConverter.insetsToString(Insets insets)
Returns
Insets converted into string. |
static Scale |
ScaleConverter.pointFromString(String point)
Returns
Scale read from string. |
static String |
ScaleConverter.pointToString(Scale point)
Returns
Scale converted into string. |
String |
ScaleConverter.toString(Object obj) |
String |
DimensionConverter.toString(Object object) |
String |
InsetsConverter.toString(Object insets) |
String |
ClassConverter.toString(Object o) |
Copyright © 2020. All rights reserved.