Record Class LanguageReplacements

java.lang.Object
java.lang.Record
gg.xp.xivsupport.timelines.intl.LanguageReplacements

public record LanguageReplacements(Map<Pattern,String> replaceSync, Map<Pattern,String> replaceText) extends Record
  • Constructor Details

    • LanguageReplacements

      public LanguageReplacements(Map<Pattern,String> replaceSync, Map<Pattern,String> replaceText)
      Creates an instance of a LanguageReplacements record class.
      Parameters:
      replaceSync - the value for the replaceSync record component
      replaceText - the value for the replaceText record component
  • Method Details

    • fromRaw

      public static LanguageReplacements fromRaw(Map<String,String> replaceSync, Map<String,String> replaceText)
    • sortedReplaceSync

      public Map<String,String> sortedReplaceSync()
    • sortedReplaceText

      public Map<String,String> sortedReplaceText()
    • doNameReplacement

      @NotNull public @NotNull String doNameReplacement(@NotNull @NotNull String input)
    • doSyncReplacement

      @NotNull public @NotNull String doSyncReplacement(@NotNull @NotNull String input)
    • empty

      public static LanguageReplacements empty()
    • combine

      public static LanguageReplacements combine(List<LanguageReplacements> all)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • replaceSync

      public Map<Pattern,String> replaceSync()
      Returns the value of the replaceSync record component.
      Returns:
      the value of the replaceSync record component
    • replaceText

      public Map<Pattern,String> replaceText()
      Returns the value of the replaceText record component.
      Returns:
      the value of the replaceText record component