Class FieldValue

    • Method Detail

      • isValid

        public abstract boolean isValid()
      • compareToValue

        public abstract int compareToValue​(Object value)
      • compareToValue

        public abstract int compareToValue​(FieldValue value)
      • cast

        public FieldValue cast​(org.dmg.pmml.HasType<?> hasType)
      • compareTo

        public int compareTo​(org.dmg.pmml.HasValue<?> hasValue)

        Calculates the order between this value and the reference value.

      • equals

        public boolean equals​(org.dmg.pmml.HasValue<?> hasValue)

        Checks if this value is equal to the reference value.

      • isIn

        public boolean isIn​(org.dmg.pmml.HasValueSet<?> hasValueSet)

        Checks if this value is contained in the set of reference values.

      • equalsValue

        public boolean equalsValue​(Object value)
      • equalsValue

        public boolean equalsValue​(FieldValue value)
      • asCollection

        public Collection<?> asCollection()
      • asString

        public String asString()
      • asNumber

        public Number asNumber()
      • asInteger

        public Integer asInteger()
      • asFloat

        public Float asFloat()
      • asDouble

        public Double asDouble()
        Getting the value of a field as Double:
         FieldValue value = ...;
         Double result = value.asDouble();
         
        Getting the value of a field as double:
         FieldValue value = ...;
         double result = (value.asNumber()).doubleValue();
         
        See Also:
        asNumber()
      • asBoolean

        public Boolean asBoolean()
      • asDate

        public org.jpmml.model.temporals.Date asDate()
      • asTime

        public org.jpmml.model.temporals.Time asTime()
      • asDateTime

        public org.jpmml.model.temporals.DateTime asDateTime()
      • asInstant

        public org.jpmml.model.temporals.Instant<?> asInstant()
      • hashCode

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

        public org.dmg.pmml.DataType getDataType()
        Specified by:
        getDataType in interface TypeInfo
      • getValue

        public Object getValue()
      • create

        public static FieldValue create​(org.dmg.pmml.OpType opType,
                                        org.dmg.pmml.DataType dataType,
                                        Object value)