Class Utility


  • public class Utility
    extends java.lang.Object
    Třída obsahující pomocné metody
    • Constructor Summary

      Constructors 
      Constructor Description
      Utility()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] expandArray​(byte[] arrayIn)
      Zvětší pole velikosti dva na pole velikosti čtyři
      static long getElapsedTime​(long startTime)
      Vrací uplnynulý čas
      static java.lang.String getFormattedTime​(long time)
      Vrací sformátovaný čas
      static java.util.Properties loadPropertiesFile()
      Načítá řetězcové zdroje
      • Methods inherited from class java.lang.Object

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

      • Utility

        public Utility()
    • Method Detail

      • expandArray

        public static byte[] expandArray​(byte[] arrayIn)
        Zvětší pole velikosti dva na pole velikosti čtyři
        Parameters:
        arrayIn - - Vstupní pole o veliksoti 2
        Returns:
        - Pole o velikosti 4
      • getFormattedTime

        public static java.lang.String getFormattedTime​(long time)
        Vrací sformátovaný čas
        Parameters:
        time - - Hodnota času
        Returns:
        - Řetězec s formátovaným časem
      • getElapsedTime

        public static long getElapsedTime​(long startTime)
        Vrací uplnynulý čas
        Parameters:
        startTime - - Čas začátku
        Returns:
        - Uplynulý čas
      • loadPropertiesFile

        public static java.util.Properties loadPropertiesFile()
        Načítá řetězcové zdroje
        Returns:
        - Proměnná s řetězci