Class FunctionService

java.lang.Object
ch.nolix.base.misc.function.FunctionService

public final class FunctionService extends Object
Of the FunctionService an instance cannot be created.
Author:
Silvan Wyss
  • Method Details

    • areEqual

      public static boolean areEqual(Object object1, Object object2)
      Parameters:
      object1 -
      object2 -
      Returns:
      true if the given object1 and the given object2 are equal, false otherwise.
    • doNothing

      public static void doNothing()
      Does nothing.
    • getFalse

      public static boolean getFalse()
      Returns:
      false.
    • getHashCode

      public static int getHashCode(Object object)
      Parameters:
      object -
      Returns:
      the hash code of the given object.
    • getNull

      public static Object getNull()
      Returns:
      null.
    • getOne

      public static double getOne()
      Returns:
      1.0.
    • getSelf

      public static <O> O getSelf(O object)
      Type Parameters:
      O - is the type of the given object.
      Parameters:
      object -
      Returns:
      the given object.
    • getStringRepresentationOf

      public static String getStringRepresentationOf(Object object)
      Parameters:
      object -
      Returns:
      the String representation of the given object.
    • getTrue

      public static boolean getTrue()
      Returns:
      true.
    • getTypeOf

      public static Class<?> getTypeOf(Object object)
      Parameters:
      object -
      Returns:
      the type of the given object.
    • getZero

      public static double getZero()
      Returns:
      0.0.
    • takeObjectAndDoNothing

      public static void takeObjectAndDoNothing(Object object)
      Does nothing.
      Parameters:
      object -
    • throwException

      public static void throwException()
      Throws:
      GeneralException