Class StringTreeMap<V>

java.lang.Object
com.hypixel.hytale.codec.builder.StringTreeMap<V>

public class StringTreeMap<V> extends Object
  • Field Details

  • Constructor Details

    • StringTreeMap

      public StringTreeMap()
    • StringTreeMap

      public StringTreeMap(@Nonnull StringTreeMap<V> parent)
    • StringTreeMap

      public StringTreeMap(@Nonnull Map<String,V> entries)
  • Method Details

    • getKey

      @Nullable public String getKey()
    • getValue

      @Nullable public V getValue()
    • putAll

      public void putAll(@Nonnull Map<String,V> entries)
    • put

      public void put(@Nonnull String key, V values)
    • remove

      public void remove(@Nonnull String key)
    • findEntry

      @Nullable public StringTreeMap<V> findEntry(@Nonnull String key)
      Finds the entry for a key that is already in hand.

      A node holds its key at the shallowest depth that stays unambiguous, so the stored key can be longer than the parts walked to reach it. Only a whole key match counts.

    • findEntry

      @Nullable public StringTreeMap<V> findEntry(@Nonnull RawJsonReader reader) throws IOException
      Throws:
      IOException
    • findEntryOrDefault

      public StringTreeMap<V> findEntryOrDefault(@Nonnull RawJsonReader reader, StringTreeMap<V> def) throws IOException
      Throws:
      IOException
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object
    • readStringPartAsLong

      public static long readStringPartAsLong(@Nonnull String key, int start, int end)