test_class.file: bundles/org.openhab.core/src/test/java/org/openhab/core/library/types/DecimalTypeTest.java
test_class.identifier: DecimalTypeTest
test_case.body: @Test
      public void testEquals() {
          DecimalType dt1 = new DecimalType("142.8");
          DecimalType dt2 = new DecimalType("142.8");
          DecimalType dt3 = new DecimalType("99.7");
          PercentType pt = new PercentType("99.7");
  
          // Do not change to assertEquals(), because we want to check if .equals() works as expected!
          assertTrue(dt1.equals(dt2));
          assertFalse(dt1.equals(dt3));
          assertTrue(dt3.equals(pt));
          assertFalse(dt1.equals(pt));
      }
test_case.class_method_signature: DecimalTypeTest.testEquals()
test_case.full_signature: @Test public void testEquals()
test_case.identifier: testEquals
test_case.invocations: assertTrue equals assertFalse equals assertTrue equals assertFalse equals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEquals()
focal_class.declarator: serialVersionUID = 4226845847123464690L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 4226845847123464690L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: ZERO = new DecimalType(0)
focal_class.modifier: public static final
focal_class.original_string: public static final DecimalType ZERO = new DecimalType(0);
focal_class.type: DecimalType
focal_class.var_name: ZERO
focal_class.declarator: value
focal_class.modifier: protected
focal_class.original_string: protected BigDecimal value;
focal_class.type: BigDecimal
focal_class.var_name: value
focal_class.file: bundles/org.openhab.core/src/main/java/org/openhab/core/library/types/DecimalType.java
focal_class.identifier: DecimalType
focal_class.interfaces: implements PrimitiveType, State, Command, Comparable<DecimalType>
focal_class.class_method_signature: DecimalType.DecimalType()
focal_class.full_signature: public  DecimalType()
focal_class.identifier: DecimalType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  DecimalType()
focal_class.class_method_signature: DecimalType.DecimalType(BigDecimal value)
focal_class.full_signature: public  DecimalType(BigDecimal value)
focal_class.identifier: DecimalType
focal_class.modifiers: public
focal_class.parameters: (BigDecimal value)
focal_class.signature:  DecimalType(BigDecimal value)
focal_class.class_method_signature: DecimalType.DecimalType(long value)
focal_class.full_signature: public  DecimalType(long value)
focal_class.identifier: DecimalType
focal_class.modifiers: public
focal_class.parameters: (long value)
focal_class.signature:  DecimalType(long value)
focal_class.class_method_signature: DecimalType.DecimalType(double value)
focal_class.full_signature: public  DecimalType(double value)
focal_class.identifier: DecimalType
focal_class.modifiers: public
focal_class.parameters: (double value)
focal_class.signature:  DecimalType(double value)
focal_class.class_method_signature: DecimalType.DecimalType(String value)
focal_class.full_signature: public  DecimalType(String value)
focal_class.identifier: DecimalType
focal_class.modifiers: public
focal_class.parameters: (String value)
focal_class.signature:  DecimalType(String value)
focal_class.class_method_signature: DecimalType.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: DecimalType.toFullString()
focal_class.full_signature: @Override public String toFullString()
focal_class.identifier: toFullString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toFullString()
focal_class.class_method_signature: DecimalType.valueOf(String value)
focal_class.full_signature: public static DecimalType valueOf(String value)
focal_class.identifier: valueOf
focal_class.modifiers: public static
focal_class.parameters: (String value)
focal_class.return: DecimalType
focal_class.signature: DecimalType valueOf(String value)
focal_class.class_method_signature: DecimalType.format(String pattern)
focal_class.full_signature: @Override public String format(String pattern)
focal_class.identifier: format
focal_class.modifiers: @Override public
focal_class.parameters: (String pattern)
focal_class.return: String
focal_class.signature: String format(String pattern)
focal_class.class_method_signature: DecimalType.toBigDecimal()
focal_class.full_signature: public BigDecimal toBigDecimal()
focal_class.identifier: toBigDecimal
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: BigDecimal
focal_class.signature: BigDecimal toBigDecimal()
focal_class.class_method_signature: DecimalType.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: DecimalType.equals(@Nullable Object obj)
focal_class.full_signature: @Override public boolean equals(@Nullable Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(@Nullable Object obj)
focal_class.class_method_signature: DecimalType.compareTo(DecimalType o)
focal_class.full_signature: @Override public int compareTo(DecimalType o)
focal_class.identifier: compareTo
focal_class.modifiers: @Override public
focal_class.parameters: (DecimalType o)
focal_class.return: int
focal_class.signature: int compareTo(DecimalType o)
focal_class.class_method_signature: DecimalType.doubleValue()
focal_class.full_signature: @Override public double doubleValue()
focal_class.identifier: doubleValue
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double doubleValue()
focal_class.class_method_signature: DecimalType.floatValue()
focal_class.full_signature: @Override public float floatValue()
focal_class.identifier: floatValue
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: float
focal_class.signature: float floatValue()
focal_class.class_method_signature: DecimalType.intValue()
focal_class.full_signature: @Override public int intValue()
focal_class.identifier: intValue
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int intValue()
focal_class.class_method_signature: DecimalType.longValue()
focal_class.full_signature: @Override public long longValue()
focal_class.identifier: longValue
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long longValue()
focal_class.class_method_signature: DecimalType.defaultConversion(@Nullable Class<T> target)
focal_class.full_signature: protected T defaultConversion(@Nullable Class<T> target)
focal_class.identifier: defaultConversion
focal_class.modifiers: protected
focal_class.parameters: (@Nullable Class<T> target)
focal_class.return: T
focal_class.signature: T defaultConversion(@Nullable Class<T> target)
focal_class.class_method_signature: DecimalType.as(@Nullable Class<T> target)
focal_class.full_signature: @Override public T as(@Nullable Class<T> target)
focal_class.identifier: as
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable Class<T> target)
focal_class.return: T
focal_class.signature: T as(@Nullable Class<T> target)
focal_class.superclass: extends Number
focal_method.body: @Override
      public boolean equals(@Nullable Object obj) {
          if (this == obj) {
              return true;
          }
          if (obj == null) {
              return false;
          }
          if (!(obj instanceof DecimalType)) {
              return false;
          }
          DecimalType other = (DecimalType) obj;
          return value.compareTo(other.value) == 0;
      }
focal_method.class_method_signature: DecimalType.equals(@Nullable Object obj)
focal_method.full_signature: @Override public boolean equals(@Nullable Object obj)
focal_method.identifier: equals
focal_method.invocations: compareTo
focal_method.modifiers: @Override public
focal_method.parameters: (@Nullable Object obj)
focal_method.return: boolean
focal_method.signature: boolean equals(@Nullable Object obj)