Class KeyUtil


  • public final class KeyUtil
    extends java.lang.Object
    Utilities for processing key values.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private KeyUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] getKeyBytes​(java.lang.String k)
      Get the bytes for a key.
      static java.util.Collection<byte[]> getKeyBytes​(java.util.Collection<java.lang.String> keys)
      Get the keys in byte form for all of the string keys.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KeyUtil

        private KeyUtil()
    • Method Detail

      • getKeyBytes

        public static byte[] getKeyBytes​(java.lang.String k)
        Get the bytes for a key.
        Parameters:
        k - the key
        Returns:
        the bytes
      • getKeyBytes

        public static java.util.Collection<byte[]> getKeyBytes​(java.util.Collection<java.lang.String> keys)
        Get the keys in byte form for all of the string keys.
        Parameters:
        keys - a collection of keys
        Returns:
        return a collection of the byte representations of keys