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 testConversionToPointType() {
          // should not be possible => null
          assertNull(new DecimalType("0.23").as(PointType.class));
      }
test_case.class_method_signature: DecimalTypeTest.testConversionToPointType()
test_case.full_signature: @Test public void testConversionToPointType()
test_case.identifier: testConversionToPointType
test_case.invocations: assertNull as
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConversionToPointType()
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 <T extends State> @Nullable T as(@Nullable Class<T> target) {
          if (target == OnOffType.class) {
              return target.cast(equals(ZERO) ? OnOffType.OFF : OnOffType.ON);
          } else if (target == PercentType.class) {
              return target.cast(new PercentType(toBigDecimal().multiply(BigDecimal.valueOf(100))));
          } else if (target == UpDownType.class) {
              if (equals(ZERO)) {
                  return target.cast(UpDownType.UP);
              } else if (toBigDecimal().compareTo(BigDecimal.valueOf(1)) == 0) {
                  return target.cast(UpDownType.DOWN);
              } else {
                  return null;
              }
          } else if (target == OpenClosedType.class) {
              if (equals(ZERO)) {
                  return target.cast(OpenClosedType.CLOSED);
              } else if (toBigDecimal().compareTo(BigDecimal.valueOf(1)) == 0) {
                  return target.cast(OpenClosedType.OPEN);
              } else {
                  return null;
              }
          } else if (target == HSBType.class) {
              return target.cast(new HSBType(DecimalType.ZERO, PercentType.ZERO,
                      new PercentType(this.toBigDecimal().multiply(BigDecimal.valueOf(100)))));
          } else if (target == DateTimeType.class) {
              return target.cast(new DateTimeType(value.toString()));
          } else {
              return defaultConversion(target);
          }
      }
focal_method.class_method_signature: DecimalType.as(@Nullable Class<T> target)
focal_method.full_signature: @Override public T as(@Nullable Class<T> target)
focal_method.identifier: as
focal_method.invocations: cast equals cast multiply toBigDecimal valueOf equals cast compareTo toBigDecimal valueOf cast equals cast compareTo toBigDecimal valueOf cast cast multiply toBigDecimal valueOf cast toString defaultConversion
focal_method.modifiers: @Override public
focal_method.parameters: (@Nullable Class<T> target)
focal_method.return: T
focal_method.signature: T as(@Nullable Class<T> target)