Deprecated API

Contents

  • Deprecated Classes
    Class
    Description
    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 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 by CompactSet 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 utilize CompactSet 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 by CompactSet 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 utilize CompactSet 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.<String, Object>builder().insertionOrder().build();

    This creates a CompactMap with:

    • compactSize = 70
    • caseSensitive = true (default behavior)
    • ordering = INSERTION (maintains insertion order)

    As of release 2.19.0, replaced by CompactSet 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 utilize CompactSet 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.