Examples of asInteger()


Examples of org.apache.commons.net.util.SubnetUtils.SubnetInfo.asInteger()

        System.out.printf("Broadcast Address:\t\t%s\t[%s]\n", info.getBroadcastAddress(),
                Integer.toBinaryString(info.asInteger(info.getBroadcastAddress())));
        System.out.printf("Low Address:\t\t\t%s\t[%s]\n", info.getLowAddress(),
                Integer.toBinaryString(info.asInteger(info.getLowAddress())));
        System.out.printf("High Address:\t\t\t%s\t[%s]\n", info.getHighAddress(),
                Integer.toBinaryString(info.asInteger(info.getHighAddress())));
       
        System.out.printf("Total usable addresses: \t%d\n", info.getAddressCount());
        System.out.printf("Address List: %s\n\n", Arrays.toString(info.getAllAddresses()));
       
        final String prompt ="Enter an IP address (e.g. 192.168.0.10):";
View Full Code Here

Examples of org.msgpack.value.Value.asInteger()

        }
        Value v = (Value) o;
        if (!v.isInteger()) {
            return false;
        }
        IntegerValue iv = v.asInteger();
        return value.equals(iv.toBigInteger());
    }

    @Override
    public int hashCode() {
View Full Code Here

Examples of org.msgpack.value.Value.asInteger()

        }
        Value v = (Value) o;
        if (!v.isInteger()) {
            return false;
        }
        IntegerValue iv = v.asInteger();
        if (!iv.isValidLong()) {
            return false;
        }
        return value == iv.toLong();
    }
View Full Code Here

Examples of org.rosuda.REngine.REXP.asInteger()

    }

    if (rdata != null) {
      try {
        if (rdata instanceof REXPInteger) {
          return new IntWritable(rdata.asInteger());
        } else if (rdata instanceof REXPString) {
          return new Text(rdata.asString());
        } else if (rdata instanceof REXPDouble) {
          return new DoubleWritable(rdata.asDouble());
        } else {
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.