return CstBoolean.make((Boolean) value); } else if (value instanceof Byte) { return CstByte.make((Byte) value); } else if (value instanceof Character) { return CstChar.make((Character) value);
/** * Makes an instance for the given value. This may (but does not * necessarily) return an already-allocated instance. * * @param value the {@code byte} value */ public static CstByte make(byte value) { return new CstByte(value); }
/** * Gets the {@code byte} value. * * @return the value */ public byte getValue() { return (byte) getIntBits(); } }
/** * Makes an instance for the given {@code int} value. This * may (but does not necessarily) return an already-allocated * instance. * * @param value the value, which must be in range for a {@code byte} * @return {@code non-null;} the appropriate instance */ public static CstByte make(int value) { byte cast = (byte) value; if (cast != value) { throw new IllegalArgumentException("bogus byte value: " + value); } return make(cast); }
/** * Gets the {@code byte} value. * * @return the value */ public byte getValue() { return (byte) getIntBits(); } }
/** * Makes an instance for the given value. This may (but does not * necessarily) return an already-allocated instance. * * @param value the {@code byte} value */ public static CstByte make(byte value) { return new CstByte(value); }
/** * Makes an instance for the given {@code int} value. This * may (but does not necessarily) return an already-allocated * instance. * * @param value the value, which must be in range for a {@code byte} * @return {@code non-null;} the appropriate instance */ public static CstByte make(int value) { byte cast = (byte) value; if (cast != value) { throw new IllegalArgumentException("bogus byte value: " + value); } return make(cast); }
/** * Gets the {@code byte} value. * * @return the value */ public byte getValue() { return (byte) getIntBits(); } }
/** * Makes an instance for the given value. This may (but does not * necessarily) return an already-allocated instance. * * @param value the {@code byte} value */ public static CstByte make(byte value) { return new CstByte(value); }
/** * Makes an instance for the given {@code int} value. This * may (but does not necessarily) return an already-allocated * instance. * * @param value the value, which must be in range for a {@code byte} * @return {@code non-null;} the appropriate instance */ public static CstByte make(int value) { byte cast = (byte) value; if (cast != value) { throw new IllegalArgumentException("bogus byte value: " + value); } return make(cast); }
/** * Gets the {@code byte} value. * * @return the value */ public byte getValue() { return (byte) getIntBits(); } }
/** * Makes an instance for the given value. This may (but does not * necessarily) return an already-allocated instance. * * @param value the {@code byte} value */ public static CstByte make(byte value) { return new CstByte(value); }
/** * Makes an instance for the given {@code int} value. This * may (but does not necessarily) return an already-allocated * instance. * * @param value the value, which must be in range for a {@code byte} * @return {@code non-null;} the appropriate instance */ public static CstByte make(int value) { byte cast = (byte) value; if (cast != value) { throw new IllegalArgumentException("bogus byte value: " + value); } return make(cast); }
/** * Gets the {@code byte} value. * * @return the value */ public byte getValue() { return (byte) getIntBits(); } }
/** * Makes an instance for the given value. This may (but does not * necessarily) return an already-allocated instance. * * @param value the {@code byte} value */ public static CstByte make(byte value) { return new CstByte(value); }
/** * Makes an instance for the given {@code int} value. This * may (but does not necessarily) return an already-allocated * instance. * * @param value the value, which must be in range for a {@code byte} * @return {@code non-null;} the appropriate instance */ public static CstByte make(int value) { byte cast = (byte) value; if (cast != value) { throw new IllegalArgumentException("bogus byte value: " + value); } return make(cast); }
/** * Gets the {@code byte} value. * * @return the value */ public byte getValue() { return (byte) getIntBits(); } }
/** * Makes an instance for the given value. This may (but does not * necessarily) return an already-allocated instance. * * @param value the {@code byte} value */ public static CstByte make(byte value) { return new CstByte(value); }
/** * Makes an instance for the given {@code int} value. This * may (but does not necessarily) return an already-allocated * instance. * * @param value the value, which must be in range for a {@code byte} * @return {@code non-null;} the appropriate instance */ public static CstByte make(int value) { byte cast = (byte) value; if (cast != value) { throw new IllegalArgumentException("bogus byte value: " + value); } return make(cast); }
/** * Gets the {@code byte} value. * * @return the value */ public byte getValue() { return (byte) getIntBits(); } }