Examples of toLong()


Examples of org.exolab.castor.types.Duration.toLong()

      }
      /* it is better for a good understanding to use
      the parse method with 'min.toSring()' but in that case
      we have to deal with the ParseException*/
      jsc.append(
        "new org.exolab.castor.types.Duration(" + max.toLong() + "L)");
      jsc.append(");");
    }
    //-- pattern facet
   
    jsc.add(fieldValidatorInstanceName+".setValidator(typeValidator);");
View Full Code Here

Examples of org.exolab.castor.xml.schema.Facet.toLong()

      Facet facet = (Facet) enumeration.nextElement();
      String name = facet.getName();

      //-- maxExclusive
      if (Facet.MAX_EXCLUSIVE.equals(name))
        setMaxExclusive(facet.toLong());
      //-- maxInclusive
      else if (Facet.MAX_INCLUSIVE.equals(name))
        setMaxInclusive(facet.toLong());
      //-- minExclusive
      else if (Facet.MIN_EXCLUSIVE.equals(name))
View Full Code Here

Examples of org.exolab.castor.xml.schema.Facet.toLong()

      //-- maxExclusive
      if (Facet.MAX_EXCLUSIVE.equals(name))
        setMaxExclusive(facet.toLong());
      //-- maxInclusive
      else if (Facet.MAX_INCLUSIVE.equals(name))
        setMaxInclusive(facet.toLong());
      //-- minExclusive
      else if (Facet.MIN_EXCLUSIVE.equals(name))
        setMinExclusive(facet.toLong());
      //-- minInclusive
      else if (Facet.MIN_INCLUSIVE.equals(name))
View Full Code Here

Examples of org.exolab.castor.xml.schema.Facet.toLong()

      //-- maxInclusive
      else if (Facet.MAX_INCLUSIVE.equals(name))
        setMaxInclusive(facet.toLong());
      //-- minExclusive
      else if (Facet.MIN_EXCLUSIVE.equals(name))
        setMinExclusive(facet.toLong());
      //-- minInclusive
      else if (Facet.MIN_INCLUSIVE.equals(name))
        setMinInclusive(facet.toLong());
      //-- pattern
      else if (Facet.PATTERN.equals(name))
View Full Code Here

Examples of org.exolab.castor.xml.schema.Facet.toLong()

      //-- minExclusive
      else if (Facet.MIN_EXCLUSIVE.equals(name))
        setMinExclusive(facet.toLong());
      //-- minInclusive
      else if (Facet.MIN_INCLUSIVE.equals(name))
        setMinInclusive(facet.toLong());
      //-- pattern
      else if (Facet.PATTERN.equals(name))
        setPattern(facet.getValue());
    } //setFacets
View Full Code Here

Examples of org.jitterbit.integration.server.data.DataElement.toLong()

          priority = value.toInt();
          if ( priority < 0 || priority > 9 )
            priority = defaultPriority;
        }
        else if ( headerName.equalsIgnoreCase("JMSTimeToLive") ) {
          timeToLive = value.toLong();
          if ( timeToLive < 0 )
            timeToLive = defaultTimeToLive;
        }
      }
      else if( propName.startsWith(propertyPrefix) ) {
View Full Code Here

Examples of org.msgpack.value.IntegerValue.toLong()

        }
        IntegerValue iv = v.asInteger();
        if (!iv.isValidLong()) {
            return false;
        }
        return value == iv.toLong();
    }

    @Override
    public int hashCode() {
        if (INT_MIN <= value && value <= INT_MAX) {
View Full Code Here

Examples of org.msgpack.value.NumberValue.toLong()

        NumberValue numberValue = valueHolder.getRef().asNumber();
        if (numberValue.isValidInt()) {
            return numberValue.toInt();
        }
        else if (numberValue.isValidLong()) {
            return numberValue.toLong();
        }
        else {
            return numberValue.toBigInteger();
        }
    }
View Full Code Here

Examples of org.tigris.subversion.lib.Revision.toLong()

    public void testRevisionCreateIntegrity()
  {
      long rev = 55;
      Revision revision = NativeWrapper.revisionCreate(rev);

      assertEquals( rev, revision.toLong() );
  }
}
View Full Code Here

Examples of org.vmmagic.unboxed.Address.toLong()

        } else {
            final Address valuePtr = ObjectReference.fromObject(value).toAddress();
            if (slotLength == 1) {
                statics[idx] = valuePtr.toInt();
            } else {
                final long lvalue = valuePtr.toLong();
                if (lsbFirst) {
                    statics[idx + 0] = (int) (lvalue & 0xFFFFFFFFL);
                    statics[idx + 1] = (int) ((lvalue >>> 32) & 0xFFFFFFFFL);
                } else {
                    statics[idx + 1] = (int) (lvalue & 0xFFFFFFFFL);
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.