Examples of asLong()


Examples of ch.agent.t2.time.TimeIndex.asLong()

    TimeIndex t = begin.getDate(domain);
    if (t.compareTo(time) > 0) {
      if (keepBegin)
        setTime(t);
      else {
        long diff = t.asLong() - time.asLong();
        long test = begin.offset + diff;
        if (Math.abs(test) <= Integer.MAX_VALUE)
          begin.incr((int)diff);
        else // change from TODAY to LITERAL
          begin.setTime(time);
View Full Code Here

Examples of com.addthis.bundle.value.ValueObject.asLong()

                        val = vl > vr ? 1 : -1;
                    }
                    break;
                case INT:
                    final long il = vLeft.asLong().getLong();
                    final long ir = vRight.asLong().getLong();
                    if (il != ir) {
                        val = il > ir ? 1 : -1;
                    }
                    break;
            }
View Full Code Here

Examples of com.barchart.feed.base.values.api.SizeValue.asLong()

  @Override
  public final boolean equals(Object thatSize) {
    if (thatSize instanceof SizeValue) {
      SizeValue that = (SizeValue) thatSize;
      return this.asLong() == that.asLong();
    }
    return false;
  }

  @Override
View Full Code Here

Examples of com.barchart.util.values.api.SizeValue.asLong()

  @Override
  public final boolean equals(Object thatSize) {
    if (thatSize instanceof SizeValue) {
      SizeValue that = (SizeValue) thatSize;
      return this.asLong() == that.asLong();
    }
    return false;
  }

  @Override
View Full Code Here

Examples of com.carrotgarden.util.values.api.SizeValue.asLong()

  @Override
  public final boolean equals(Object thatSize) {
    if (thatSize instanceof SizeValue) {
      SizeValue that = (SizeValue) thatSize;
      return this.asLong() == that.asLong();
    }
    return false;
  }

  @Override
View Full Code Here

Examples of com.eclipsesource.json.JsonValue.asLong()

    }

    public static long getLong(JsonObject object, String field) {
        final JsonValue value = object.get(field);
        throwExceptionIfNull(value, field);
        return value.asLong();
    }

    public static long getLong(JsonObject object, String field, long defaultValue) {
        final JsonValue value = object.get(field);
        if (value == null) {
View Full Code Here

Examples of com.fasterxml.jackson.databind.JsonNode.asLong()

                if (value.isNull()) {
                    tree.removeProperty(name);
                } else if (value.isBoolean()) {
                    tree.setProperty(name, value.asBoolean());
                } else if (value.isLong()) {
                    tree.setProperty(name, value.asLong());
                } else if (value.isDouble()) {
                    tree.setProperty(name, value.asDouble());
                } else if (value.isBigDecimal()) {
                    tree.setProperty(name, value.decimalValue());
                } else {
View Full Code Here

Examples of com.fasterxml.jackson.databind.JsonNode.asLong()

    public void longs_are_unwrapped() {
        JsonNode node = using(JACKSON_TREE_CONFIGURATION).parse(JSON_DOCUMENT).read("$.long-max-property");
        long unwrapped = using(JACKSON_TREE_CONFIGURATION).parse(JSON_DOCUMENT).read("$.long-max-property", long.class);

        assertThat(unwrapped).isEqualTo(Long.MAX_VALUE);
        assertThat(unwrapped).isEqualTo(node.asLong());
    }


    @Test
    public void list_of_numbers() {
View Full Code Here

Examples of com.fasterxml.jackson.databind.JsonNode.asLong()

            } else if (e.isBoolean()) {
                return e.asBoolean();
            } else if (e.isInt()) {
                return e.asInt();
            } else if (e.isLong()) {
                return e.asLong();
            } else if (e.isBigDecimal()) {
                return e.decimalValue();
            } else if (e.isDouble()) {
                return e.doubleValue();
            } else if (e.isFloat()) {
View Full Code Here

Examples of com.fasterxml.jackson.databind.JsonNode.asLong()

            } else if (valueNode.isBoolean()) {
                value = valueNode.asBoolean();
            } else if (valueNode.isInt()) {
                value = valueNode.asInt();
            } else if (valueNode.isLong()) {
                value = valueNode.asLong();
            } else if (valueNode.isDouble()) {
                value = valueNode.asDouble();
            } else {
                value = valueNode;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.