Deprecated API
Contents
-
Deprecated InterfacesInterfaceDescriptionUse
Traverser.traverse(Object, Set, Consumer)
instead.
-
Deprecated ClassesClassDescriptionAs of Cedar Software java-util 2.19.0, replaced by CompactMap with builder pattern configuration.
Example replacement:
Instead of:Map<String, String> map = new CompactCIHashMap<>();
Use:Map<String, String> map = CompactMap.newMap(80, false, 16, CompactMap.UNORDERED);
This creates a CompactMap with:
- compactSize = 80 (same as CompactCIHashMap)
- caseSensitive = false (case-insensitive behavior)
- capacity = 16 (default initial capacity)
- ordering = UNORDERED (standard hash map behavior)
As of release 2.19.0, replaced byCompactSet
with builder configurations. This class is no longer recommended for use and may be removed in future releases.Similar to
CompactSet
, but it is configured to be case-insensitive. Instead of using this subclass, please utilizeCompactSet
with the builder to configure case insensitivity and other desired behaviors.Example migration:
// Deprecated usage: CompactCIHashSet<String> ciHashSet = new CompactCIHashSet<>(); ciHashSet.add("Apple"); assert ciHashSet.contains("APPLE"); // true // Recommended replacement: CompactSet<String> compactSet = CompactSet.<String>builder() .caseSensitive(false) .compactSize(70) // or desired size .build(); compactSet.add("Apple"); assert compactSet.contains("APPLE"); // true
This approach reduces the need for multiple specialized subclasses and leverages the flexible builder pattern to achieve the desired configurations.
As of Cedar Software java-util 2.19.0, replaced by CompactMap with builder pattern configuration.Example replacement:
Instead of:Map<String, String> map = new CompactCILinkedMap<>();
Use:Map<String, String> map = CompactMap.newMap(80, false, 16, CompactMap.INSERTION);
This creates a CompactMap with:
- compactSize = 80 (same as CompactCIHashMap)
- caseSensitive = false (case-insensitive behavior)
- capacity = 16 (default initial capacity)
- ordering = UNORDERED (standard hash map behavior)
As of release 2.19.0, replaced byCompactSet
with builder configurations. This class is no longer recommended for use and may be removed in future releases.Similar to
CompactSet
, but it is configured to be case-insensitive. Instead of using this subclass, please utilizeCompactSet
with the builder to configure case insensitivity, sequence order, and other desired behaviors.Example migration:
// Deprecated usage: CompactCILinkedSet<String> ciLinkedSet = new CompactCILinkedSet<>(); ciLinkedSet.add("Apple"); assert ciLinkedSet.contains("APPLE"); // true // Recommended replacement: CompactSet<String> compactSet = CompactSet.<String>builder() .caseSensitive(false) .insertionOrder() .build(); compactSet.add("Apple"); assert compactSet.contains("APPLE"); // true
This approach reduces the need for multiple specialized subclasses and leverages the flexible builder pattern to achieve the desired configurations.
As of Cedar Software java-util 2.19.0, replaced by CompactMap with builder pattern configuration.Example replacement:
Instead of:Map<String, String> map = new CompactLinkedMap<>();
Use:Map<String, String> map = CompactMap.newMap(80, true, 16, CompactMap.INSERTION);
This creates a CompactMap with:
- compactSize = 80 (same as CompactLinkedMap)
- caseSensitive = true (default behavior)
- capacity = 16 (default initial capacity)
- ordering = INSERTION (maintains insertion order)
As of release 2.19.0, replaced byCompactSet
with builder configurations. This class is no longer recommended for use and may be removed in future releases.Similar to
CompactSet
, but it is configured to be case-insensitive. Instead of using this subclass, please utilizeCompactSet
with the builder to configure case insensitivity, sequence order, and other desired behaviors.Example migration:
// Deprecated usage: CompactCILinkedSet<String> linkedSet = new CompactLinkedSet<>(); linkedSet.add("Apple"); assert !linkedSet.contains("APPLE"); assert linkedSet.contains("Apple"); // Recommended replacement: CompactSet<String> compactSet = CompactSet.<String>builder() .caseSensitive(true) .insertionOrder() .build();
This approach reduces the need for multiple specialized subclasses and leverages the flexible builder pattern to achieve the desired configurations.
-
Deprecated MethodsMethodDescriptionThis method is no longer used and has been removed. It is retained here only to maintain backward compatibility with existing subclasses. New implementations should use the builder pattern to configure
CompactSet
.This method is no longer used and has been removed. It is retained here only to maintain backward compatibility with existing subclasses. New implementations should use the builder pattern to configureCompactSet
.This method is no longer used and has been removed. It is retained here only to maintain backward compatibility with existing subclasses. New implementations should use the builder pattern to configureCompactSet
.UseCompactSet.Builder.compactSize(int)
instead. Maintained for backward compatibility with existing subclasses.Legacy method. Subclasses should configure CompactSet using the builder pattern instead. Maintained for backward compatibility with existing subclasses.UseCompactSet.Builder.caseSensitive(boolean)
instead. Maintained for backward compatibility with existing subclasses.As of 3.0.0, replaced byReflectionUtils.getAllDeclaredFields(Class)
. Note that getAllDeclaredFields() includes transient fields and synthetic fields (like "this$"). If you need the old behavior, filter the additional fields:
This method will be removed in 3.0.0 or soon after.// Combine DEFAULT_FIELD_FILTER with additional criteria for legacy behavior Predicate<Field> legacyFilter = field -> DEFAULT_FIELD_FILTER.test(field) && !Modifier.isTransient(field.getModifiers()) && !field.isSynthetic();
As of 3.0.0, replaced byReflectionUtils.getAllDeclaredFieldsMap(Class)
. Note that getAllDeclaredFieldsMap() includes transient fields and synthetic fields (like "this$"). If you need the old behavior, filter the additional fields:
This method may be removed in 3.0.0.// Get fields excluding transient and synthetic fields List<Field> fields = getAllDeclaredFieldsMap(MyClass.class, field -> DEFAULT_FIELD_FILTER.test(field) && !Modifier.isTransient(field.getModifiers()) && !field.isSynthetic() );
As of 3.0.0, replaced byReflectionUtils.getAllDeclaredFields(Class)
. Note that getAllDeclaredFields() includes transient fields and synthetic fields (like "this$"). If you need the old behavior, filter the additional fields:
This method may be removed in 3.0.0.// Get fields excluding transient and synthetic fields List<Field> fields = getAllDeclaredFields(MyClass.class, field -> DEFAULT_FIELD_FILTER.test(field) && !Modifier.isTransient(field.getModifiers()) && !field.isSynthetic() );
UseTraverser.traverse(Object, Set, Consumer)
instead.UseTraverser.traverse(Object, Set, Consumer)
instead.