Interface StringContainer

All Known Implementing Classes:
StringArray, StringArray

public interface StringContainer
A string container.

Something that contains some number of strings, not necessarily in any particular order.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(String string)
    Check if the given string is equal to any of those contained.
    default boolean
    Check if it's empty.
    int
    Get the number of contained strings.
  • Method Details

    • size

      int size()
      Get the number of contained strings.
      Returns:
      the size
    • isEmpty

      default boolean isEmpty()
      Check if it's empty.
      Returns:
      whether there are no strings
    • contains

      boolean contains(String string)
      Check if the given string is equal to any of those contained.
      Parameters:
      string - the string to check for membership
      Returns:
      whether such a string is contained