Class LegacyEscapeReplacer

java.lang.Object
uk.num.numlib.internal.util.LegacyEscapeReplacer
All Implemented Interfaces:
java.util.function.Function<java.lang.String,​java.lang.String>

public final class LegacyEscapeReplacer
extends java.lang.Object
implements java.util.function.Function<java.lang.String,​java.lang.String>
Replace Legacy DNS Escape sequences see https://app.clubhouse.io/num/story/2639/handling-escaped-characters-in-dns-responses
  • Constructor Summary

    Constructors 
    Constructor Description
    LegacyEscapeReplacer()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String apply​(java.lang.String numRecord)
    Applies this function to the given argument.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Constructor Details

  • Method Details

    • apply

      public java.lang.String apply​(java.lang.String numRecord)
      Applies this function to the given argument.
      Specified by:
      apply in interface java.util.function.Function<java.lang.String,​java.lang.String>
      Parameters:
      numRecord - the function argument
      Returns:
      the function result