Class CardCombatDatabase.Converters

  • Enclosing class:
    CardCombatDatabase

    public static class CardCombatDatabase.Converters
    extends Object
    Provides type converters to translate Java objects into data that can be stored in the SQLite database.
    • Constructor Detail

      • Converters

        public Converters()
    • Method Detail

      • uuidToBytes

        public static byte[] uuidToBytes​(UUID value)
        Converts a UUID object into bytes.
        Parameters:
        value - A UUID object.
        Returns:
        An byte
      • bytesToUUID

        public static UUID bytesToUUID​(byte[] value)
        Converts a byte into a UUID object.
        Parameters:
        value - A UUID object.
        Returns:
        An UUID