Class Parameter

java.lang.Object
cronapi.report.Parameter
All Implemented Interfaces:
Serializable

public class Parameter extends Object implements Serializable
See Also:
  • Constructor Details

  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String name)
    • getType

      public ParameterType getType()
    • setType

      public void setType(ParameterType type)
    • getValue

      public Object getValue()
    • setValue

      public void setValue(Object value)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getOnlyDate

      public static Date getOnlyDate(String date)
    • getOnlyDate

      public static Date getOnlyDate(Date date)
    • isExists

      public static boolean isExists(String value)
      Verifica se um determinado valor existe, impede um saudoso 'NullPointerException'
      Parameters:
      value - Valor
      Returns:
      true or false
    • doubleNotNull

      public static Double doubleNotNull(String value)
      Para obter um valor double de forma mais segura evitando NullPointerException.
      Parameters:
      value - Valor
      Returns:
      Valor tratado
    • intNotNull

      public static Integer intNotNull(String value)
      Para obter um valor integer de forma mais segura evitando NullPointerException.
      Parameters:
      value - Valor
      Returns:
      Valor tratado
    • floatNotNull

      public static Float floatNotNull(String value)
      Para obter um valor float de forma mais segura evitando NullPointerException.
      Parameters:
      value - Valor
      Returns:
      Valor tratado
    • booleanNotNull

      public static Boolean booleanNotNull(String value)
    • longNotNull

      public static Long longNotNull(String value)
      Para obter um valor long de forma mais segura evitando NullPointerException.
      Parameters:
      value - Valor
      Returns:
      Valor tratado
    • stringNotNull

      public static String stringNotNull(String value)
      Para obter um valor String de forma mais segura evitando NullPointerException.
      Parameters:
      value - Valor
      Returns:
      Valor tratado