Interface StringSet

All Superinterfaces:
Iterable<String>
All Known Implementing Classes:
ArrayStringSet, HashStringSet, LongBitmapStringSet

public interface StringSet extends Iterable<String>
Interface for sets of Strings that can be mapped to a 64-bit long bitmap.
  • Method Details

    • contains

      boolean contains(String value)
    • containsAny

      boolean containsAny(String... values)
    • containsAll

      boolean containsAll(String... values)
    • size

      int size()
    • values

      String[] values()
    • sortedValues

      String[] sortedValues()
      Get a sorted array of the values in this StringSet. May or may not match the value returned by values().
      Returns:
      A sorted array of this StringSet's values
    • isEmpty

      boolean isEmpty()
    • getEncoding

      long getEncoding(@NotNull @NotNull ToIntFunction<String> toOffset)
    • defaultToString

      default String defaultToString()
    • defaultHashCode

      default int defaultHashCode()
    • defaultEquals

      default boolean defaultEquals(Object other)