Class AsciiMap

java.lang.Object
org.apache.juneau.common.internal.AsciiMap

public final class AsciiMap extends Object
Stores a Map of ASCII characters to Strings in a quick-lookup array.
  • Constructor Details

  • Method Details

    • append

      public AsciiMap append(char c, String s)
      Adds an entry to this map.
      Parameters:
      c - The key.
      s - The value.
      Returns:
      This object.
    • get

      public String get(char c)
      Returns the value for the specified key.
      Parameters:
      c - The key.
      Returns:
      The value.
    • contains

      public boolean contains(char c)
      Returns true if the specified character is in this store.
      Parameters:
      c - The character to check.
      Returns:
      true if the specified character is in this store.
    • contains

      public boolean contains(int c)
      Returns true if the specified character is in this store.
      Parameters:
      c - The character to check.
      Returns:
      true if the specified character is in this store.
    • contains

      public boolean contains(CharSequence s)
      Returns true if the specified string contains at least one character in this set.
      Parameters:
      s - The string to test.
      Returns:
      true if the string is not null and contains at least one character in this set.