Class UniqueIdStringifier

  • All Implemented Interfaces:
    java.util.function.Function<java.io.Serializable,​java.lang.String>

    @API(status=INTERNAL,
         since="4.12")
    public class UniqueIdStringifier
    extends java.lang.Object
    implements java.util.function.Function<java.io.Serializable,​java.lang.String>
    Since:
    4.12
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.nio.charset.Charset CHARSET  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String apply​(java.io.Serializable uniqueId)  
      private java.lang.String encodeBase64​(byte[] bytes)  
      private byte[] serialize​(java.io.Serializable uniqueId)  
      • 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
    • Field Detail

      • CHARSET

        static final java.nio.charset.Charset CHARSET
    • Constructor Detail

      • UniqueIdStringifier

        public UniqueIdStringifier()
    • Method Detail

      • apply

        public java.lang.String apply​(java.io.Serializable uniqueId)
        Specified by:
        apply in interface java.util.function.Function<java.io.Serializable,​java.lang.String>
      • serialize

        private byte[] serialize​(java.io.Serializable uniqueId)
      • encodeBase64

        private java.lang.String encodeBase64​(byte[] bytes)