Examples of UnsignedShort


Examples of org.apache.axis2.databinding.types.UnsignedShort

                            } else if ("unsignedLong".equals(attributeType)) {
                                returnObject = new UnsignedLong(attribValue);
                            } else if ("unsignedInt".equals(attributeType)) {
                                returnObject = new UnsignedInt(attribValue);
                            } else if ("unsignedShort".equals(attributeType)) {
                                returnObject = new UnsignedShort(attribValue);
                            } else if ("unsignedByte".equals(attributeType)) {
                                returnObject = new UnsignedByte(attribValue);
                            } else if ("positiveInteger".equals(attributeType)) {
                                returnObject = new PositiveInteger(attribValue);
                            } else if ("negativeInteger".equals(attributeType)) {
View Full Code Here

Examples of org.apache.axis2.databinding.types.UnsignedShort

    public static UnsignedInt convertTounsignedInt(String s) {
        return new UnsignedInt(s);
    }

    public static UnsignedShort convertTounsignedShort(String s) {
        return new UnsignedShort(s);
    }
View Full Code Here

Examples of org.apache.axis2.databinding.types.UnsignedShort

            return null;
        }
        if (s.startsWith("+")) {
            s = s.substring(1);
        }
        return new UnsignedShort(s);
    }
View Full Code Here

Examples of org.apache.axis2.databinding.types.UnsignedShort

                            } else if ("unsignedLong".equals(attributeType)) {
                                returnObject = new UnsignedLong(attribValue);
                            } else if ("unsignedInt".equals(attributeType)) {
                                returnObject = new UnsignedInt(attribValue);
                            } else if ("unsignedShort".equals(attributeType)) {
                                returnObject = new UnsignedShort(attribValue);
                            } else if ("unsignedByte".equals(attributeType)) {
                                returnObject = new UnsignedByte(attribValue);
                            } else if ("positiveInteger".equals(attributeType)) {
                                returnObject = new PositiveInteger(attribValue);
                            } else if ("negativeInteger".equals(attributeType)) {
View Full Code Here

Examples of org.apache.qpid.proton.amqp.UnsignedShort

                    o.setOutgoingLocales( (Symbol) val4 );
                }
            case 5:
                o.setIdleTimeOut( (UnsignedInteger) l.get( 4 ) );
            case 6:
                UnsignedShort channelMax = (UnsignedShort) l.get(3);
                o.setChannelMax(channelMax == null ? UnsignedShort.MAX_VALUE : channelMax);
            case 7:
                UnsignedInteger maxFrameSize = (UnsignedInteger) l.get(2);
                o.setMaxFrameSize(maxFrameSize == null ? UnsignedInteger.MAX_VALUE : maxFrameSize);
            case 8:
View Full Code Here

Examples of org.apache.qpid.proton.type.UnsignedShort

                        o.setOutgoingLocales( (Symbol) val4 );
                    }
                case 5:
                    o.setIdleTimeOut( (UnsignedInteger) l.get( 4 ) );
                case 6:
                    UnsignedShort channelMax = (UnsignedShort) l.get(3);
                    o.setChannelMax(channelMax == null ? UnsignedShort.MAX_VALUE : channelMax);
                case 7:
                    UnsignedInteger maxFrameSize = (UnsignedInteger) l.get(2);
                    o.setMaxFrameSize(maxFrameSize == null ? UnsignedInteger.MAX_VALUE : maxFrameSize);
                case 8:
View Full Code Here

Examples of propel.core.userTypes.UnsignedShort

   * @throws NumberFormatException A number could not be parsed.
   */
  @Validate
  public static UnsignedShort fromBinaryToUInt16(@NotNull final String binary)
  {
    return new UnsignedShort(new BigInteger(binary, 2));
  }
View Full Code Here

Examples of propel.core.userTypes.UnsignedShort

   * @throws NumberFormatException A number could not be parsed.
   */
  @Validate
  public static UnsignedShort fromStringToUInt16(@NotNull final String value)
  {
    return new UnsignedShort(value);
  }
View Full Code Here

Examples of propel.core.userTypes.UnsignedShort

    if (targetType.equals(Int128.class))
      return new Int128(number.toString());
    if (targetType.equals(UnsignedByte.class))
      return new UnsignedByte((short) (number.byteValue() & 0xFF));
    if (targetType.equals(UnsignedShort.class))
      return new UnsignedShort((int) (number.shortValue() & 0xFFFF));
    if (targetType.equals(UnsignedInteger.class))
      return new UnsignedInteger((long) (number.intValue() & 0xFFFFFFFF));
    if (targetType.equals(UnsignedLong.class))
    {
      // perform similar operation as above to get rid of the negative values
View Full Code Here

Examples of propel.core.userTypes.UnsignedShort

    if (targetType.equals(Int128.class))
      return new Int128(Integer.valueOf(ch).toString());
    if (targetType.equals(UnsignedByte.class))
      return new UnsignedByte((byte) ch);
    if (targetType.equals(UnsignedShort.class))
      return new UnsignedShort(ch);
    if (targetType.equals(UnsignedInteger.class))
      return new UnsignedInteger(ch);
    if (targetType.equals(UnsignedLong.class))
      return new UnsignedLong(new Integer(ch).toString());
    if (targetType.equals(SignedByte.class))
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.