Examples of intValue()


Examples of org.bouncycastle.asn1.misc.NetscapeCertType.intValue()

        byte[] netscapeCertTypeExtValue = resultCert.getExtensionValue(MiscObjectIdentifiers.netscapeCertType.getId());
        assertNotNull(netscapeCertTypeExtValue);
        DERBitString netscapeCertTypeExt = (DERBitString) X509ExtensionUtil.fromExtensionValue(netscapeCertTypeExtValue);
        NetscapeCertType netscapeCertType = new NetscapeCertType(netscapeCertTypeExt);
        assertEquals(NetscapeCertType.sslClient, netscapeCertType.intValue() & NetscapeCertType.sslClient);
        assertEquals(NetscapeCertType.sslServer, netscapeCertType.intValue() & NetscapeCertType.sslServer);

        assertTrue(resultCert.getKeyUsage()[0]);
        assertTrue(resultCert.getKeyUsage()[2]);
View Full Code Here

Examples of org.dmd.dmc.types.IntegerVar.intValue()

     
    if ((cd.getClassType() != ClassTypeEnum.AUXILIARY) && (cd.getClassType() != ClassTypeEnum.ABSTRACT)){
      addImport(uniqueImports, longestImport, cd.getDmoImport(), "Class not auxiliary or abstract");
    }
   
    sb.append(formatImports(uniqueImports, longestImport.intValue()));
  }
 
  void addImport(TreeMap<String,String> map, IntegerVar longest, String i, String c){
    if (i.length() > longest.intValue())
      longest.set(i.length());
View Full Code Here

Examples of org.eclipse.imp.pdb.facts.IInteger.intValue()

    for(IValue v : st){
      ITuple t = (ITuple) v;
      IInteger from = (IInteger) t.get(0);
      IInteger to = (IInteger) t.get(2);
      if(from.intValue() > r) r = from.intValue();
      if(to.intValue() > r) r = to.intValue();
    }
    return r + 1;
  }
 
  private void printTransitions(PrintStream fos, ISet st){
View Full Code Here

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

      return true;
    if (!currentConstant.getClass().equals(otherConstant.getClass()))
      return true;
    switch (currentConstant.typeID()) {
      case TypeIds.T_int :
        return currentConstant.intValue() != otherConstant.intValue();
      case TypeIds.T_byte :
        return currentConstant.byteValue() != otherConstant.byteValue();
      case TypeIds.T_short :
        return currentConstant.shortValue() != otherConstant.shortValue();
      case TypeIds.T_char :
View Full Code Here

Examples of org.elasticsearch.common.xcontent.XContentParser.intValue()

                currentFieldName = parser.currentName();
            } else if (token.isValue()) {
                if ("like_text".equals(currentFieldName) || "likeText".equals(currentFieldName)) {
                    mltQuery.setLikeText(parser.text());
                } else if ("min_term_freq".equals(currentFieldName) || "minTermFreq".equals(currentFieldName)) {
                    mltQuery.setMinTermFrequency(parser.intValue());
                } else if ("max_query_terms".equals(currentFieldName) || "maxQueryTerms".equals(currentFieldName)) {
                    mltQuery.setMaxQueryTerms(parser.intValue());
                } else if ("min_doc_freq".equals(currentFieldName) || "minDocFreq".equals(currentFieldName)) {
                    mltQuery.setMinDocFreq(parser.intValue());
                } else if ("max_doc_freq".equals(currentFieldName) || "maxDocFreq".equals(currentFieldName)) {
View Full Code Here

Examples of org.foray.ps.PsInteger.intValue()

        final int[] fontBBox = new int[BoundingBox.BBOX_ENTRIES];
        for (int i = 0; i < psarray.size(); i++) {
            final Object arrayItem = psarray.get(i);
            if (arrayItem instanceof PsInteger) {
                final PsInteger psInteger = (PsInteger) arrayItem;
                final int itemValue = psInteger.intValue();
                fontBBox[i] = itemValue;
            } else {
                return null;
            }
        }
View Full Code Here

Examples of org.goda.chronic.utils.Tick.intValue()

      DateTime tomorrowMidnight = midnight.plusSeconds(fullDay);
      boolean done = false;
      if (pointer == Pointer.PointerType.FUTURE) {
        if (tick.isAmbiguous()) {
          List<DateTime> futureDates = new LinkedList<DateTime>();
          futureDates.add( midnight.plusSeconds(tick.intValue()));
          futureDates.add(midnight.plusSeconds( halfDay + tick.intValue()));
          futureDates.add(tomorrowMidnight.plusSeconds(tick.intValue()));
          for (DateTime futureDate : futureDates) {
            if (futureDate.getMillis() > now.getMillis() || futureDate.equals(now)) {
              _currentTime = futureDate;
View Full Code Here

Examples of org.hornetq.api.jms.JMSFactoryType.intValue()

         xmlWriter.writeCharacters(Integer.toString(dupsOKBatchSize));
         xmlWriter.writeEndElement();

         JMSFactoryType factoryType = jmsConnectionFactory.getConfig().getFactoryType();
         xmlWriter.writeStartElement(XmlDataConstants.JMS_CONNECTION_FACTORY_TYPE);
         xmlWriter.writeCharacters(Integer.toString(factoryType.intValue()));
         xmlWriter.writeEndElement();

         String groupID = jmsConnectionFactory.getConfig().getGroupID();
         if (groupID != null)
         {
View Full Code Here

Examples of org.jamesii.core.math.complex.Complex.intValue()

  }

  /** Tests the {@link Complex#intValue()} method. */
  public void testIntValue() {
    Complex c = new Complex(Math.random() * 100, Math.random() * 100);
    assertEquals(c.intValue(), (int) c.getReal());
  }

  /** Tests the {@link Complex#longValue()} method. */
  public void testLongValue() {
    Complex c = new Complex(Math.random() * 100, Math.random() * 100);
 
View Full Code Here

Examples of org.jboss.resteasy.core.request.QualityValue.intValue()

   @Test
   public void numbers()
   {
      QualityValue x = QualityValue.valueOf("0.08");
      assertEquals(80, x.intValue());
      assertEquals(80L, x.longValue());
      assertEquals(0.08f, x.floatValue());
      assertEquals(0.08d, x.doubleValue());
   }
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.