Examples of toLong()


Examples of com.linkedin.restli.server.custom.types.CustomLong.toLong()

                                                                  customLongClass
    );

    Assert.assertTrue(convertedCustomLong.getClass().equals(customLongClass));
    CustomLong customLong = (CustomLong) convertedCustomLong;
    Assert.assertTrue(customLong.toLong().equals(new Long(100)));
  }

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

Examples of com.rackspacecloud.blueflood.types.AbstractRollupStat.toLong()

            case Type.B_ROLLUP_STAT:
                sz = 1 + 1; // type + isFP.
                AbstractRollupStat stat = (AbstractRollupStat)o;
                sz += stat.isFloatingPoint() ?
                        CodedOutputStream.computeDoubleSizeNoTag(stat.toDouble()) :
                        CodedOutputStream.computeRawVarint64Size(stat.toLong());
                return sz;
            case Type.B_TIMER:
                sz += 1; // version
                TimerRollup rollup = (TimerRollup)o;
                sz += CodedOutputStream.computeRawVarint64Size(rollup.getSum());
View Full Code Here

Examples of es.ipsa.atril.doc.user.AttributeMultiValue.toLong()

                put(aAttrs[a].name, oAttr.toDate());
                break;
              case DATE_TIME:
                long lValue;
                try {
                  lValue = oAttr.toLong();
                  Log.out.info("Got long value "+String.valueOf(lValue));
                  if (lValue!=-1l)
                    put(aAttrs[a].name, DateConversions.getDateFromIPSATime(lValue));
                } catch (NumberFormatException nfe) {
                  String sValue;
View Full Code Here

Examples of es.ipsa.atril.doc.user.AttributeMultiValue.toLong()

                case DATE_TIME:
                  Date[] aDttm = new Date[oAttr.count()];
                  for (int c=0; c<oAttr.count(); c++) {
                    long lValue;
                    try {
                      lValue = oAttr.toLong();
                      if (lValue!=-1l)       
                        aDttm[c] = DateConversions.getDateFromIPSATime(lValue);
                      else
                        aDttm[c] = null;
                    } catch (NumberFormatException nfe) {
View Full Code Here

Examples of javax.bluetooth.UUID.toLong()

            if (protocolParameterList.hasMoreElements()) {
                DataElement protocolDescriptor = (DataElement)protocolParameterList.nextElement();
                if (protocolDescriptor != null) {
                    if (protocolDescriptor.getDataType() == DataElement.UUID) {
                        UUID protocolDescriptorUUID = (UUID)protocolDescriptor.getValue();
                        if (protocolDescriptorUUID.toLong() == 0x0100) //is L2CAP
                        {
                            if (protocolParameterList.hasMoreElements()) {
                                DataElement protocolPSMElement = (DataElement)protocolParameterList.nextElement();
                                {
                                    if (protocolPSMElement != null) {
View Full Code Here

Examples of javax.bluetooth.UUID.toLong()

            if (protocolParameterList.hasMoreElements()) {
                DataElement protocolDescriptor = (DataElement)protocolParameterList.nextElement();
                if (protocolDescriptor != null) {
                    if (protocolDescriptor.getDataType() == DataElement.UUID) {
                        UUID protocolDescriptorUUID = (UUID)protocolDescriptor.getValue();
                        if (protocolDescriptorUUID.toLong() == 0x0100) //is L2CAP
                        {
                            if (protocolParameterList.hasMoreElements()) {
                                DataElement protocolPSMElement = (DataElement)protocolParameterList.nextElement();
                                {
                                    if (protocolPSMElement != null) {
View Full Code Here

Examples of javolution.text.CharArray.toLong()

         *         the default value if the attribute is not found.
         */
        public long getAttribute(String name, long defaultValue)
                throws XMLStreamException {
            CharArray value = getAttribute(name);
            return (value != null) ? value.toLong() : defaultValue;
        }

        /**
         * Returns the specified <code>float</code> attribute.
         *
 
View Full Code Here

Examples of javolution.text.CharArray.toLong()

         *         the default value if the attribute is not found.
         */
        public long getAttribute(String name, long defaultValue)
                throws XMLStreamException {
            CharArray value = getAttribute(name);
            return (value != null) ? value.toLong() : defaultValue;
        }

        /**
         * Returns the specified <code>float</code> attribute.
         *
 
View Full Code Here

Examples of net.floodlightcontroller.util.MACAddress.toLong()

        byte[] data = pin.getPacketData();
        byte[] mac = Arrays.copyOfRange(data, 6, 12);
        MACAddress srcMac = MACAddress.valueOf(mac);
        short ethType = (short) (((data[12] & 0xff) << 8) + (data[13] & 0xff));
        if (ethType != Ethernet.TYPE_LLDP && ethType != Ethernet.TYPE_BSN &&
                macCache.update(srcMac.toLong())) {
            // Check if we already pushed a flow in the last 5 seconds
            if (macBlockedCache.update(srcMac.toLong())) {
                return;
            }
            // write out drop flow per srcMac
View Full Code Here

Examples of net.floodlightcontroller.util.MACAddress.toLong()

        MACAddress srcMac = MACAddress.valueOf(mac);
        short ethType = (short) (((data[12] & 0xff) << 8) + (data[13] & 0xff));
        if (ethType != Ethernet.TYPE_LLDP && ethType != Ethernet.TYPE_BSN &&
                macCache.update(srcMac.toLong())) {
            // Check if we already pushed a flow in the last 5 seconds
            if (macBlockedCache.update(srcMac.toLong())) {
                return;
            }
            // write out drop flow per srcMac
            int port = pin.getInPort();
            SwitchPort swPort = new SwitchPort(getId(), port);
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.