Class Constant

java.lang.Object
de.floydkretschmar.fixturize.domain.Constant

public final class Constant extends Object
Contains all data used to construct a constant in a generated fixture.
  • Method Details

    • builder

      public static Constant.ConstantBuilder builder()
    • getType

      public String getType()
      The type of the constant
    • getName

      public String getName()
      The name of the constant
    • getValue

      public String getValue()
      The value of the constant which can be a single value or valid java code.
    • getOriginalFieldName

      public String getOriginalFieldName()
      The name of the original field from which the constant was generated.
    • 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