Examples of longValue()


Examples of org.apache.commons.weaver.test.beans.ComplexAnnotations.TestAnnotation.longValue()

        assertTrue(Arrays.equals(new double[] { 0.0 }, anno1.doubleValues()));
        assertEquals(Float.valueOf(0.0f), Float.valueOf(anno1.floatValue()));
        assertTrue(Arrays.equals(new float[] { 0.0f }, anno1.floatValues()));
        assertEquals(0, anno1.intValue());
        assertArrayEquals(new int[] { 0 }, anno1.intValues());
        assertEquals(0L, anno1.longValue());
        assertArrayEquals(new long[] { 0L }, anno1.longValues());

        NestAnnotation nest1 = anno1.nest();
        assertFalse(nest1.booleanValue());
        assertTrue(Arrays.equals(new boolean[] { false }, nest1.booleanValues()));
View Full Code Here

Examples of org.apache.hadoop.hive.common.type.HiveDecimal.longValue()

    case INT:
    case LONG:
      return ((Number) scalar).longValue();
    case DECIMAL:
      HiveDecimal decimalVal = (HiveDecimal) scalar;
      return decimalVal.longValue();
    default:
      throw new HiveException("Unsupported type "+typename+" for cast to Long");
    }
  }
View Full Code Here

Examples of org.apache.isis.applib.value.TimeStamp.longValue()

    }

    @Override
    protected Object preparedStatementObject(final ObjectAdapter value) {
        final TimeStamp asDate = (TimeStamp) value.getObject();
        final java.sql.Timestamp timeStamp = new java.sql.Timestamp(asDate.longValue());
        return timeStamp;
    }

    @Override
    public ObjectAdapter setFromDBColumn(final Results results, final String columnName, final ObjectAssociation field) {
View Full Code Here

Examples of org.apache.jetspeed.util.JetspeedObjectID.longValue()

    {
        if (arg0 instanceof JetspeedObjectID)
        {
            JetspeedObjectID oid = (JetspeedObjectID) arg0;

            return new Long(oid.longValue());
        }
        else
        {
            return arg0;
        }
View Full Code Here

Examples of org.apache.pdfbox.cos.COSNumber.longValue()

                            "Float is too long or too small: " + real+"  at offset "+pdfSource.getOffset()));
                }
            }
            else
            {
                long numAsLong = number.longValue();
                if (numAsLong > Integer.MAX_VALUE || numAsLong < Integer.MIN_VALUE)
                {
                    addValidationError(new ValidationError(ERROR_SYNTAX_NUMERIC_RANGE,
                            "Numeric is too long or too small: " + numAsLong+"  at offset "+pdfSource.getOffset()));
                }
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.type.UnsignedInteger.longValue()

    }

    public long getJMSExpiration() throws JMSException
    {
        final UnsignedInteger ttl = getTtl();
        return ttl == null || ttl.longValue() == 0 ? 0 : getJMSTimestamp() + ttl.longValue();
    }

    public void setJMSExpiration(long l) throws JMSException
    {
        _expiration = l;
View Full Code Here

Examples of org.apache.vxquery.datamodel.accessors.atomic.XSDecimalPointable.longValue()

                } else if (tvp.getTag() == ValueTag.XS_INTEGER_TAG) {
                    tvp.getValue(longp);
                    return longp.longValue();
                } else if (tvp.getTag() == ValueTag.XS_DECIMAL_TAG) {
                    tvp.getValue(decp);
                    return decp.longValue();
                } else {
                    throw new SystemException(ErrorCode.FORG0006);
                }
            }
        };
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.impl.Constant.longValue()

      case TypeIds.T_short :
        return currentConstant.shortValue() != otherConstant.shortValue();
      case TypeIds.T_char :
        return currentConstant.charValue() != otherConstant.charValue();
      case TypeIds.T_long :
        return currentConstant.longValue() != otherConstant.longValue();
      case TypeIds.T_float :
        return currentConstant.floatValue() != otherConstant.floatValue();
      case TypeIds.T_double :
        return currentConstant.doubleValue() != otherConstant.doubleValue();
      case TypeIds.T_boolean :
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.impl.Constant.longValue()

    final int numberOfParens = (longLiteral.bits & ASTNode.ParenthesizedMASK) >> ASTNode.ParenthesizedSHIFT;
    if (numberOfParens > 0) {
      manageOpeningParenthesizedExpression(longLiteral, numberOfParens);
    }
    Constant constant = longLiteral.constant;
    if (constant != null && constant.longValue() < 0) {
      this.scribe.printNextToken(TerminalTokens.TokenNameMINUS);     
    }
    this.scribe.printNextToken(TerminalTokens.TokenNameLongLiteral);

    if (numberOfParens > 0) {
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.impl.Constant.longValue()

        case TypeIds.T_float:
          return new Float(constant.floatValue());
        case TypeIds.T_int:
          return new Integer(constant.intValue());
        case TypeIds.T_long:
          return new Long(constant.longValue());
        case TypeIds.T_short:
          return new Short(constant.shortValue());
        case TypeIds.T_JavaLangString:
          return constant.stringValue();
      }
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.