Java 类java.lang.Float 实例源码

项目:DalvikSSA    文件:smaliTreeWalker.java   
private float parseFloat(String floatString) {
    Matcher m = specialFloatRegex.matcher(floatString);
    if (m.matches()) {
        //got an infinity
        if (m.start(1) != -1) {
            if (m.start(2) != -1) {
                return Float.NEGATIVE_INFINITY;
            } else {
                return Float.POSITIVE_INFINITY;
            }
        } else {
            return Float.NaN;
        }
    }
    return Float.parseFloat(floatString);
}
项目:soabase-halva    文件:TestCase.java   
@Override
public int hashCode() {
    int result = name.hashCode();
    result = 31 * result + date;
    result = 31 * result + longList.hashCode();
    result = 31 * result + stringDateMap.hashCode();
    result = 31 * result + concurrentMap.hashCode();
    result = 31 * result + (truth ? 1 : 0);
    result = 31 * result + activation.hashCode();
    result = 31 * result + Double.hashCode(percent);
    result = 31 * result + Float.hashCode(section);
    result = 31 * result + isIt.hashCode();
    result = 31 * result + mutableValue.hashCode();
    result = 31 * result + charset.hashCode();
    return result;
}
项目:j2objc    文件:MaxFloatingPointTest.java   
public void testFloatNarrowing() {
  float fmin = Float.NEGATIVE_INFINITY;
  float fmax = Float.POSITIVE_INFINITY;
  assertEquals("fmin as long failed", Long.MIN_VALUE, (long) fmin);
  assertEquals("fmax as long failed", Long.MAX_VALUE, (long) fmax);
  assertEquals("fmin as int failed", Integer.MIN_VALUE, (int) fmin);
  assertEquals("fmax as int failed", Integer.MAX_VALUE, (int) fmax);
  assertEquals("fmin as char failed", Character.MIN_VALUE, (char) fmin);
  assertEquals("fmax as char failed", Character.MAX_VALUE, (char) fmax);

  // Surprising values for shorts and bytes, but that's what's specified.
  assertEquals("fmin as short failed", 0, (short) fmin);
  assertEquals("fmax as short failed", -1, (short) fmax);
  assertEquals("fmin as byte failed", 0, (byte) fmin);
  assertEquals("fmax as byte failed", -1, (byte) fmax);
}
项目:Impro-Visor    文件:Delay.java   
/**
    * The nextWork method for <bl>Delay<bl> will store
    * the sample and send out the delayed one instead. 
    */
   public int work(float[] buffer)throws AOException{
int returned = this.previous[0].nextWork(buffer);
if (sampleCounter >= sampleDelay) {
    for(int i=0;i<returned;i++){
    // keep the current sample from the chain
    storedSamples.addElement(new Float(buffer[i]));
    // replace it with a stored sample
    Float tempFloat = (Float)storedSamples.elementAt(storedSamples.size()-1);
    buffer[i] = tempFloat.floatValue();
    // remove the used stored sample
    storedSamples.removeElementAt(storedSamples.size()-1);
    }

} else { // early on pad with silence
    for(int i=0;i<returned;i++){
    // keep the current sample from the chain
    storedSamples.addElement(new Float(buffer[i]));
    // send out a zero value
    buffer[i] = (float)0.0;
    }
}

sampleCounter ++;
return returned;
   }
项目:soya    文件:SoyaShell.java   
public Object positive(Object obj) throws Exception {
    if (obj instanceof Integer) {
        return obj;
    }
    else if (obj instanceof Int) {
        return obj;
    }
    else if (obj instanceof Float) {
        return obj;
    }
    else if (obj instanceof soya.lang.Float) {
        return obj;
    }
    else if (obj instanceof Double) {
        return obj;
    }
    else if (obj instanceof BigDecimal) {
        return obj;
    }
    throw new Exception("Positive operator cannot be applied to " + obj.getClass().getSimpleName());
}
项目:soya    文件:SoyaShell.java   
public Object negative(Object obj) throws Exception {
    if (obj instanceof Integer) {
        return new Integer(-((Integer) obj).intValue());
    }
    else if (obj instanceof Int) {
        return new Int(-((Int) obj).getValue());
    }
    else if (obj instanceof Float) {
        return new Float(-((Float) obj).floatValue());
    }
    else if (obj instanceof soya.lang.Float) {
        return new soya.lang.Float(-((soya.lang.Float) obj).getValue());
    }
    else if (obj instanceof Double) {
        return new Double(-((Double) obj).doubleValue());
    }
    else if (obj instanceof BigDecimal) {
        return ((BigDecimal) obj).multiply(new BigDecimal(-1));
    }
    throw new Exception("Nagative operator cannot be applied to " + obj.getClass().getSimpleName());
}
项目:wire    文件:MessageOptions.java   
public MessageOptions(Boolean message_set_wire_format, Boolean no_standard_descriptor_accessor,
    Boolean deprecated, Boolean map_entry, List<UninterpretedOption> uninterpreted_option,
    FooBar my_message_option_one, Float my_message_option_two, FooBar my_message_option_three,
    FooBar.FooBarBazEnum my_message_option_four, FooBar my_message_option_five,
    FooBar my_message_option_six, ForeignMessage foreign_message_option,
    ByteString unknownFields) {
  super(ADAPTER, unknownFields);
  this.message_set_wire_format = message_set_wire_format;
  this.no_standard_descriptor_accessor = no_standard_descriptor_accessor;
  this.deprecated = deprecated;
  this.map_entry = map_entry;
  this.uninterpreted_option = Internal.immutableCopyOf("uninterpreted_option", uninterpreted_option);
  this.my_message_option_one = my_message_option_one;
  this.my_message_option_two = my_message_option_two;
  this.my_message_option_three = my_message_option_three;
  this.my_message_option_four = my_message_option_four;
  this.my_message_option_five = my_message_option_five;
  this.my_message_option_six = my_message_option_six;
  this.foreign_message_option = foreign_message_option;
}
项目:wire    文件:FieldOptions.java   
public FieldOptions(CType ctype, Boolean packed, JSType jstype, Boolean lazy, Boolean deprecated,
    Boolean weak, List<UninterpretedOption> uninterpreted_option, Integer my_field_option_one,
    Float my_field_option_two, FooBar.FooBarBazEnum my_field_option_three,
    FooBar my_field_option_four, String squareup_protos_extension_collision_1_a, String b,
    String squareup_protos_extension_collision_2_a, String c, Boolean redacted,
    ByteString unknownFields) {
  super(ADAPTER, unknownFields);
  this.ctype = ctype;
  this.packed = packed;
  this.jstype = jstype;
  this.lazy = lazy;
  this.deprecated = deprecated;
  this.weak = weak;
  this.uninterpreted_option = Internal.immutableCopyOf("uninterpreted_option", uninterpreted_option);
  this.my_field_option_one = my_field_option_one;
  this.my_field_option_two = my_field_option_two;
  this.my_field_option_three = my_field_option_three;
  this.my_field_option_four = my_field_option_four;
  this.squareup_protos_extension_collision_1_a = squareup_protos_extension_collision_1_a;
  this.b = b;
  this.squareup_protos_extension_collision_2_a = squareup_protos_extension_collision_2_a;
  this.c = c;
  this.redacted = redacted;
}
项目:SVGAPlayer-Android    文件:FrameEntity.java   
public FrameEntity(Float alpha, Layout layout, Transform transform, String clipPath,
    List<ShapeEntity> shapes, ByteString unknownFields) {
  super(ADAPTER, unknownFields);
  this.alpha = alpha;
  this.layout = layout;
  this.transform = transform;
  this.clipPath = clipPath;
  this.shapes = Internal.immutableCopyOf("shapes", shapes);
}
项目:SVGAPlayer-Android    文件:MovieParams.java   
public MovieParams(Float viewBoxWidth, Float viewBoxHeight, Integer fps, Integer frames,
    ByteString unknownFields) {
  super(ADAPTER, unknownFields);
  this.viewBoxWidth = viewBoxWidth;
  this.viewBoxHeight = viewBoxHeight;
  this.fps = fps;
  this.frames = frames;
}
项目:SVGAPlayer-Android    文件:Layout.java   
public Layout(Float x, Float y, Float width, Float height, ByteString unknownFields) {
  super(ADAPTER, unknownFields);
  this.x = x;
  this.y = y;
  this.width = width;
  this.height = height;
}
项目:SVGAPlayer-Android    文件:ShapeEntity.java   
public RectArgs(Float x, Float y, Float width, Float height, Float cornerRadius,
    ByteString unknownFields) {
  super(ADAPTER, unknownFields);
  this.x = x;
  this.y = y;
  this.width = width;
  this.height = height;
  this.cornerRadius = cornerRadius;
}
项目:SVGAPlayer-Android    文件:ShapeEntity.java   
public EllipseArgs(Float x, Float y, Float radiusX, Float radiusY, ByteString unknownFields) {
  super(ADAPTER, unknownFields);
  this.x = x;
  this.y = y;
  this.radiusX = radiusX;
  this.radiusY = radiusY;
}
项目:SVGAPlayer-Android    文件:ShapeEntity.java   
public ShapeStyle(RGBAColor fill, RGBAColor stroke, Float strokeWidth, LineCap lineCap,
    LineJoin lineJoin, Float miterLimit, Float lineDashI, Float lineDashII, Float lineDashIII,
    ByteString unknownFields) {
  super(ADAPTER, unknownFields);
  this.fill = fill;
  this.stroke = stroke;
  this.strokeWidth = strokeWidth;
  this.lineCap = lineCap;
  this.lineJoin = lineJoin;
  this.miterLimit = miterLimit;
  this.lineDashI = lineDashI;
  this.lineDashII = lineDashII;
  this.lineDashIII = lineDashIII;
}
项目:SVGAPlayer-Android    文件:ShapeEntity.java   
public RGBAColor(Float r, Float g, Float b, Float a, ByteString unknownFields) {
  super(ADAPTER, unknownFields);
  this.r = r;
  this.g = g;
  this.b = b;
  this.a = a;
}
项目:SVGAPlayer-Android    文件:Transform.java   
public Transform(Float a, Float b, Float c, Float d, Float tx, Float ty,
    ByteString unknownFields) {
  super(ADAPTER, unknownFields);
  this.a = a;
  this.b = b;
  this.c = c;
  this.d = d;
  this.tx = tx;
  this.ty = ty;
}
项目:dataenum    文件:PrimitiveValue.java   
@Override
public int hashCode() {
  int result = 0;
  result = result * 31 + Integer.valueOf(param1).hashCode();
  result = result * 31 + Boolean.valueOf(param2).hashCode();
  result = result * 31 + Float.valueOf(param3).hashCode();
  result = result * 31 + Double.valueOf(param4).hashCode();
  return result;
}
项目:auto-value-bundle    文件:AutoValue_TestClassBundled.java   
public static float[] toPrimitive(Float[] floatParam) {
    float[] floats = new float[floatParam.length];
    for (int i = 0; i < floatParam.length; i++) {
        floats[i] = floatParam[i];
    }
    return floats;
}
项目:auto-value-bundle    文件:AutoValue_TestClassBundledGCM.java   
public static TestClassBundledGCM unbundle(Bundle bundle, Gson gson) {
    return new AutoValue_TestClassBundledGCM(
            bundle,
            Byte.parseByte(bundle.getString("some_byte")),
            Boolean.parseBoolean(bundle.getString("some_boolean")),
            Short.parseShort(bundle.getString("some_short")),
            Integer.parseInt(bundle.getString("some_int")),
            Long.parseLong(bundle.getString("some_long")),
            bundle.getString("some_char").charAt(0),
            Float.parseFloat(bundle.getString("some_float")),
            Double.parseDouble(bundle.getString("some_double")),
            bundle.getString("some_string"),
            bundle.getString("some_char_sequence"),
            gson.fromJson(bundle.getString("some_parcelable"), Parcelable.class),
            gson.fromJson(bundle.getString("some_parcelable_array_list"), new com.google.common.reflect.TypeToken<java.util.ArrayList<Parcelable>>(){}.getType()),
            gson.fromJson(bundle.getString("some_parcelable_sparse_array"), new com.google.common.reflect.TypeToken<android.util.SparseArray<Parcelable>>(){}.getType()),
            gson.fromJson(bundle.getString("some_serializable"), Serializable.class),
            gson.fromJson(bundle.getString("some_integer_array_list"), new com.google.common.reflect.TypeToken<java.util.ArrayList<Integer>>(){}.getType()),
            gson.fromJson(bundle.getString("some_string_array_list"), new com.google.common.reflect.TypeToken<java.util.ArrayList<String>>(){}.getType()),
            gson.fromJson(bundle.getString("some_char_sequence_array_list"), new com.google.common.reflect.TypeToken<java.util.ArrayList<CharSequence>>(){}.getType()),
            toPrimitive(gson.fromJson(bundle.getString("some_byte_array"), Byte[].class)),
            toPrimitive(gson.fromJson(bundle.getString("some_short_array"), Short[].class)),
            toPrimitive(gson.fromJson(bundle.getString("some_char_array"), Character[].class)),
            toPrimitive(gson.fromJson(bundle.getString("some_float_array"), Float[].class)),
            gson.fromJson(bundle.getString("some_unknown_object"), new com.google.common.reflect.TypeToken<UnknownObject>(){}.getType()),
            gson.fromJson(bundle.getString("some_unknown_object_list"), new com.google.common.reflect.TypeToken<ArrayList<UnknownObject>>(){}.getType()),
            gson.fromJson(bundle.getString("test_enum"), new com.google.common.reflect.TypeToken<TestEnum>(){}.getType()));
}
项目:auto-value-bundle    文件:AutoValue_TestClassBundledGCM.java   
public static float[] toPrimitive(Float[] floatParam) {
    float[] floats = new float[floatParam.length];
    for (int i = 0; i < floatParam.length; i++) {
        floats[i] = floatParam[i];
    }
    return floats;
}
项目:ca-iris    文件:OpPTZCamera.java   
/**
 * Create the operation.
 * @param c the CameraImpl instance
 * @param cp the CohuPTZPoller instance
 * @param p the pan vector [-1..1] or null for NOP
 * @param t the tilt vector [-1..1] or null for NOP
 * @param z the zoom vector [-1..1] or null for NOP
 */
public OpPTZCamera(CameraImpl c, CohuPTZPoller cp, Float p, Float t, Float z) {
    super(PriorityLevel.COMMAND, c, cp, OP_DESC);

    created = System.nanoTime();
    pan  = p;
    tilt = t;
    zoom = z;

    log(String.format("PTZ command: P:%s  T:%s  Z:%s",
        p == null ? "null" : p.toString(),
        t == null ? "null" : t.toString(),
        z == null ? "null" : z.toString()));
}
项目:ActivityScreens    文件:PrimitiveWrappersActivityScreen.java   
public PrimitiveWrappersActivityScreen(Character field1, Integer field2, Double field3, Float field4, Boolean field5,
                             Short field6, Byte field7, Long field8) {
    this.field1 = field1;
    this.field2 = field2;
    this.field3 = field3;
    this.field4 = field4;
    this.field5 = field5;
    this.field6 = field6;
    this.field7 = field7;
    this.field8 = field8;
}
项目:adaptive-restful-api    文件:HttpHeaderValueTest.java   
@Test(expectedExceptions = ClassCastException.class)
public void testGetNotSupportedYet() throws Exception {
    HttpHeaderValue value = new HttpHeaderValue("a");

    Boolean b = value.get();
    Integer i = value.get();
    Float f = value.get();
    Double d = value.get();
    Date dt = value.get();
}
项目:storio    文件:BoxedTypesMethodsFactoryMethodStorIOSQLiteGetResolver.java   
/**
 * {@inheritDoc}
 */
@Override
@NonNull
public BoxedTypesMethodsFactoryMethod mapFromCursor(@NonNull StorIOSQLite storIOSQLite, @NonNull Cursor cursor) {

    Boolean field1 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field1"))) {
        field1 = cursor.getInt(cursor.getColumnIndex("field1")) == 1;
    }
    Short field2 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field2"))) {
        field2 = cursor.getShort(cursor.getColumnIndex("field2"));
    }
    Integer field3 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field3"))) {
        field3 = cursor.getInt(cursor.getColumnIndex("field3"));
    }
    Long field4 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field4"))) {
        field4 = cursor.getLong(cursor.getColumnIndex("field4"));
    }
    Float field5 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field5"))) {
        field5 = cursor.getFloat(cursor.getColumnIndex("field5"));
    }
    Double field6 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field6"))) {
        field6 = cursor.getDouble(cursor.getColumnIndex("field6"));
    }

    BoxedTypesMethodsFactoryMethod object = BoxedTypesMethodsFactoryMethod.create(field1, field2, field3, field4, field5, field6);

    return object;
}
项目:storio    文件:BoxedTypesPrivateFieldsStorIOSQLiteGetResolver.java   
/**
 * {@inheritDoc}
 */
@Override
@NonNull
public BoxedTypesPrivateFields mapFromCursor(@NonNull StorIOSQLite storIOSQLite, @NonNull Cursor cursor) {

    Boolean field1 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field1"))) {
        field1 = cursor.getInt(cursor.getColumnIndex("field1")) == 1;
    }
    Short field2 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field2"))) {
        field2 = cursor.getShort(cursor.getColumnIndex("field2"));
    }
    Integer field3 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field3"))) {
        field3 = cursor.getInt(cursor.getColumnIndex("field3"));
    }
    Long field4 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field4"))) {
        field4 = cursor.getLong(cursor.getColumnIndex("field4"));
    }
    Float field5 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field5"))) {
        field5 = cursor.getFloat(cursor.getColumnIndex("field5"));
    }
    Double field6 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field6"))) {
        field6 = cursor.getDouble(cursor.getColumnIndex("field6"));
    }

    BoxedTypesPrivateFields object = new BoxedTypesPrivateFields(field1, field2, field3, field4, field5, field6);

    return object;
}
项目:storio    文件:BoxedTypesMethodsConstructorStorIOSQLiteGetResolver.java   
/**
 * {@inheritDoc}
 */
@Override
@NonNull
public BoxedTypesMethodsConstructor mapFromCursor(@NonNull StorIOSQLite storIOSQLite, @NonNull Cursor cursor) {

    Boolean field1 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field1"))) {
        field1 = cursor.getInt(cursor.getColumnIndex("field1")) == 1;
    }
    Short field2 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field2"))) {
        field2 = cursor.getShort(cursor.getColumnIndex("field2"));
    }
    Integer field3 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field3"))) {
        field3 = cursor.getInt(cursor.getColumnIndex("field3"));
    }
    Long field4 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field4"))) {
        field4 = cursor.getLong(cursor.getColumnIndex("field4"));
    }
    Float field5 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field5"))) {
        field5 = cursor.getFloat(cursor.getColumnIndex("field5"));
    }
    Double field6 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field6"))) {
        field6 = cursor.getDouble(cursor.getColumnIndex("field6"));
    }

    BoxedTypesMethodsConstructor object = new BoxedTypesMethodsConstructor(field1, field2, field3, field4, field5, field6);

    return object;
}
项目:storio    文件:BoxedTypesPrivateFieldsIgnoreNullStorIOSQLiteGetResolver.java   
/**
 * {@inheritDoc}
 */
@Override
@NonNull
public BoxedTypesPrivateFieldsIgnoreNull mapFromCursor(@NonNull StorIOSQLite storIOSQLite, @NonNull Cursor cursor) {

    Boolean field1 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field1"))) {
        field1 = cursor.getInt(cursor.getColumnIndex("field1")) == 1;
    }
    Short field2 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field2"))) {
        field2 = cursor.getShort(cursor.getColumnIndex("field2"));
    }
    Integer field3 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field3"))) {
        field3 = cursor.getInt(cursor.getColumnIndex("field3"));
    }
    Long field4 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field4"))) {
        field4 = cursor.getLong(cursor.getColumnIndex("field4"));
    }
    Float field5 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field5"))) {
        field5 = cursor.getFloat(cursor.getColumnIndex("field5"));
    }
    Double field6 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field6"))) {
        field6 = cursor.getDouble(cursor.getColumnIndex("field6"));
    }

    BoxedTypesPrivateFieldsIgnoreNull object = new BoxedTypesPrivateFieldsIgnoreNull(field1, field2, field3, field4, field5, field6);

    return object;
}
项目:storio    文件:BoxedTypesMethodsConstructorIgnoreNullStorIOSQLiteGetResolver.java   
/**
 * {@inheritDoc}
 */
@Override
@NonNull
public BoxedTypesMethodsConstructorIgnoreNull mapFromCursor(@NonNull StorIOSQLite storIOSQLite, @NonNull Cursor cursor) {

    Boolean field1 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field1"))) {
        field1 = cursor.getInt(cursor.getColumnIndex("field1")) == 1;
    }
    Short field2 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field2"))) {
        field2 = cursor.getShort(cursor.getColumnIndex("field2"));
    }
    Integer field3 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field3"))) {
        field3 = cursor.getInt(cursor.getColumnIndex("field3"));
    }
    Long field4 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field4"))) {
        field4 = cursor.getLong(cursor.getColumnIndex("field4"));
    }
    Float field5 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field5"))) {
        field5 = cursor.getFloat(cursor.getColumnIndex("field5"));
    }
    Double field6 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field6"))) {
        field6 = cursor.getDouble(cursor.getColumnIndex("field6"));
    }

    BoxedTypesMethodsConstructorIgnoreNull object = new BoxedTypesMethodsConstructorIgnoreNull(field1, field2, field3, field4, field5, field6);

    return object;
}
项目:storio    文件:BoxedTypesMethodsFactoryMethodIgnoreNullStorIOSQLiteGetResolver.java   
/**
 * {@inheritDoc}
 */
@Override
@NonNull
public BoxedTypesMethodsFactoryMethodIgnoreNull mapFromCursor(@NonNull StorIOSQLite storIOSQLite, @NonNull Cursor cursor) {

    Boolean field1 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field1"))) {
        field1 = cursor.getInt(cursor.getColumnIndex("field1")) == 1;
    }
    Short field2 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field2"))) {
        field2 = cursor.getShort(cursor.getColumnIndex("field2"));
    }
    Integer field3 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field3"))) {
        field3 = cursor.getInt(cursor.getColumnIndex("field3"));
    }
    Long field4 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field4"))) {
        field4 = cursor.getLong(cursor.getColumnIndex("field4"));
    }
    Float field5 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field5"))) {
        field5 = cursor.getFloat(cursor.getColumnIndex("field5"));
    }
    Double field6 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field6"))) {
        field6 = cursor.getDouble(cursor.getColumnIndex("field6"));
    }

    BoxedTypesMethodsFactoryMethodIgnoreNull object = BoxedTypesMethodsFactoryMethodIgnoreNull.create(field1, field2, field3, field4, field5, field6);

    return object;
}
项目:storio    文件:BoxedTypesMethodsFactoryMethodStorIOContentResolverGetResolver.java   
/**
 * {@inheritDoc}
 */
@Override
@NonNull
public BoxedTypesMethodsFactoryMethod mapFromCursor(@NonNull StorIOContentResolver storIOContentResolver, @NonNull Cursor cursor) {

    Boolean field1 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field1"))) {
        field1 = cursor.getInt(cursor.getColumnIndex("field1")) == 1;
    }
    Short field2 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field2"))) {
        field2 = cursor.getShort(cursor.getColumnIndex("field2"));
    }
    Integer field3 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field3"))) {
        field3 = cursor.getInt(cursor.getColumnIndex("field3"));
    }
    Long field4 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field4"))) {
        field4 = cursor.getLong(cursor.getColumnIndex("field4"));
    }
    Float field5 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field5"))) {
        field5 = cursor.getFloat(cursor.getColumnIndex("field5"));
    }
    Double field6 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field6"))) {
        field6 = cursor.getDouble(cursor.getColumnIndex("field6"));
    }

    BoxedTypesMethodsFactoryMethod object = BoxedTypesMethodsFactoryMethod.create(field1, field2, field3, field4, field5, field6);

    return object;
}
项目:storio    文件:BoxedTypesMethodsConstructorStorIOContentResolverGetResolver.java   
/**
 * {@inheritDoc}
 */
@Override
@NonNull
public BoxedTypesMethodsConstructor mapFromCursor(@NonNull StorIOContentResolver storIOContentResolver, @NonNull Cursor cursor) {

    Boolean field1 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field1"))) {
        field1 = cursor.getInt(cursor.getColumnIndex("field1")) == 1;
    }
    Short field2 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field2"))) {
        field2 = cursor.getShort(cursor.getColumnIndex("field2"));
    }
    Integer field3 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field3"))) {
        field3 = cursor.getInt(cursor.getColumnIndex("field3"));
    }
    Long field4 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field4"))) {
        field4 = cursor.getLong(cursor.getColumnIndex("field4"));
    }
    Float field5 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field5"))) {
        field5 = cursor.getFloat(cursor.getColumnIndex("field5"));
    }
    Double field6 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field6"))) {
        field6 = cursor.getDouble(cursor.getColumnIndex("field6"));
    }

    BoxedTypesMethodsConstructor object = new BoxedTypesMethodsConstructor(field1, field2, field3, field4, field5, field6);

    return object;
}
项目:storio    文件:BoxedTypesMethodsConstructorIgnoreNullStorIOContentResolverGetResolver.java   
/**
 * {@inheritDoc}
 */
@Override
@NonNull
public BoxedTypesMethodsConstructorIgnoreNull mapFromCursor(@NonNull StorIOContentResolver storIOContentResolver, @NonNull Cursor cursor) {

    Boolean field1 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field1"))) {
        field1 = cursor.getInt(cursor.getColumnIndex("field1")) == 1;
    }
    Short field2 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field2"))) {
        field2 = cursor.getShort(cursor.getColumnIndex("field2"));
    }
    Integer field3 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field3"))) {
        field3 = cursor.getInt(cursor.getColumnIndex("field3"));
    }
    Long field4 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field4"))) {
        field4 = cursor.getLong(cursor.getColumnIndex("field4"));
    }
    Float field5 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field5"))) {
        field5 = cursor.getFloat(cursor.getColumnIndex("field5"));
    }
    Double field6 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field6"))) {
        field6 = cursor.getDouble(cursor.getColumnIndex("field6"));
    }

    BoxedTypesMethodsConstructorIgnoreNull object = new BoxedTypesMethodsConstructorIgnoreNull(field1, field2, field3, field4, field5, field6);

    return object;
}
项目:storio    文件:BoxedTypesPrivateFieldsStorIOContentResolverGetResolver.java   
/**
 * {@inheritDoc}
 */
@Override
@NonNull
public BoxedTypesPrivateFields mapFromCursor(@NonNull StorIOContentResolver storIOContentResolver, @NonNull Cursor cursor) {

    Boolean field1 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field1"))) {
        field1 = cursor.getInt(cursor.getColumnIndex("field1")) == 1;
    }
    Short field2 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field2"))) {
        field2 = cursor.getShort(cursor.getColumnIndex("field2"));
    }
    Integer field3 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field3"))) {
        field3 = cursor.getInt(cursor.getColumnIndex("field3"));
    }
    Long field4 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field4"))) {
        field4 = cursor.getLong(cursor.getColumnIndex("field4"));
    }
    Float field5 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field5"))) {
        field5 = cursor.getFloat(cursor.getColumnIndex("field5"));
    }
    Double field6 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field6"))) {
        field6 = cursor.getDouble(cursor.getColumnIndex("field6"));
    }

    BoxedTypesPrivateFields object = new BoxedTypesPrivateFields(field1, field2, field3, field4, field5, field6);

    return object;
}
项目:storio    文件:BoxedTypesPrivateFieldsIgnoreNullStorIOContentResolverGetResolver.java   
/**
 * {@inheritDoc}
 */
@Override
@NonNull
public BoxedTypesPrivateFieldsIgnoreNull mapFromCursor(@NonNull StorIOContentResolver storIOContentResolver, @NonNull Cursor cursor) {

    Boolean field1 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field1"))) {
        field1 = cursor.getInt(cursor.getColumnIndex("field1")) == 1;
    }
    Short field2 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field2"))) {
        field2 = cursor.getShort(cursor.getColumnIndex("field2"));
    }
    Integer field3 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field3"))) {
        field3 = cursor.getInt(cursor.getColumnIndex("field3"));
    }
    Long field4 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field4"))) {
        field4 = cursor.getLong(cursor.getColumnIndex("field4"));
    }
    Float field5 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field5"))) {
        field5 = cursor.getFloat(cursor.getColumnIndex("field5"));
    }
    Double field6 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field6"))) {
        field6 = cursor.getDouble(cursor.getColumnIndex("field6"));
    }

    BoxedTypesPrivateFieldsIgnoreNull object = new BoxedTypesPrivateFieldsIgnoreNull(field1, field2, field3, field4, field5, field6);

    return object;
}
项目:storio    文件:BoxedTypesMethodsFactoryMethodIgnoreNullStorIOContentResolverGetResolver.java   
/**
 * {@inheritDoc}
 */
@Override
@NonNull
public BoxedTypesMethodsFactoryMethodIgnoreNull mapFromCursor(@NonNull StorIOContentResolver storIOContentResolver, @NonNull Cursor cursor) {

    Boolean field1 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field1"))) {
        field1 = cursor.getInt(cursor.getColumnIndex("field1")) == 1;
    }
    Short field2 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field2"))) {
        field2 = cursor.getShort(cursor.getColumnIndex("field2"));
    }
    Integer field3 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field3"))) {
        field3 = cursor.getInt(cursor.getColumnIndex("field3"));
    }
    Long field4 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field4"))) {
        field4 = cursor.getLong(cursor.getColumnIndex("field4"));
    }
    Float field5 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field5"))) {
        field5 = cursor.getFloat(cursor.getColumnIndex("field5"));
    }
    Double field6 = null;
    if (!cursor.isNull(cursor.getColumnIndex("field6"))) {
        field6 = cursor.getDouble(cursor.getColumnIndex("field6"));
    }

    BoxedTypesMethodsFactoryMethodIgnoreNull object = BoxedTypesMethodsFactoryMethodIgnoreNull.create(field1, field2, field3, field4, field5, field6);

    return object;
}
项目:wire    文件:FooBar.java   
public FooBar(Integer foo, String bar, Nested baz, Long qux, List<Float> fred, Double daisy,
    List<FooBar> nested, FooBarBazEnum ext, List<FooBarBazEnum> rep, ByteString unknownFields) {
  super(ADAPTER, unknownFields);
  this.foo = foo;
  this.bar = bar;
  this.baz = baz;
  this.qux = qux;
  this.fred = Internal.immutableCopyOf("fred", fred);
  this.daisy = daisy;
  this.nested = Internal.immutableCopyOf("nested", nested);
  this.ext = ext;
  this.rep = Internal.immutableCopyOf("rep", rep);
}
项目:wire    文件:ExternalMessage.java   
public ExternalMessage(Float f, List<Integer> fooext, Integer barext, Integer bazext,
    SimpleMessage.NestedMessage nested_message_ext, SimpleMessage.NestedEnum nested_enum_ext,
    ByteString unknownFields) {
  super(ADAPTER, unknownFields);
  this.f = f;
  this.fooext = Internal.immutableCopyOf("fooext", fooext);
  this.barext = barext;
  this.bazext = bazext;
  this.nested_message_ext = nested_message_ext;
  this.nested_enum_ext = nested_enum_ext;
}
项目:wire    文件:MessageOptions.java   
public MessageOptions(Boolean message_set_wire_format, Boolean no_standard_descriptor_accessor,
    Boolean deprecated, Boolean map_entry, List<UninterpretedOption> uninterpreted_option,
    FooBar my_message_option_one, Float my_message_option_two, FooBar my_message_option_three,
    FooBar.FooBarBazEnum my_message_option_four, FooBar my_message_option_five,
    FooBar my_message_option_six, ForeignMessage foreign_message_option) {
  this(message_set_wire_format, no_standard_descriptor_accessor, deprecated, map_entry, uninterpreted_option, my_message_option_one, my_message_option_two, my_message_option_three, my_message_option_four, my_message_option_five, my_message_option_six, foreign_message_option, ByteString.EMPTY);
}
项目:wire    文件:FieldOptions.java   
public FieldOptions(CType ctype, Boolean packed, JSType jstype, Boolean lazy, Boolean deprecated,
    Boolean weak, List<UninterpretedOption> uninterpreted_option, Integer my_field_option_one,
    Float my_field_option_two, FooBar.FooBarBazEnum my_field_option_three,
    FooBar my_field_option_four, String squareup_protos_extension_collision_1_a, String b,
    String squareup_protos_extension_collision_2_a, String c, Boolean redacted) {
  this(ctype, packed, jstype, lazy, deprecated, weak, uninterpreted_option, my_field_option_one, my_field_option_two, my_field_option_three, my_field_option_four, squareup_protos_extension_collision_1_a, b, squareup_protos_extension_collision_2_a, c, redacted, ByteString.EMPTY);
}
项目:DropletTracker    文件:DropletTracker_.java   
public static void setProperty (String arg1, String arg2) {
   if (arg1.equals("minSize"))
      minSize = Integer.parseInt(arg2);
   else if (arg1.equals("maxSize"))
      maxSize = Integer.parseInt(arg2);
   else if (arg1.equals("minTrackLength"))
      minTrackLength = Integer.parseInt(arg2);
   else if (arg1.equals("maxVelocity"))
      maxVelocity = Float.valueOf(arg2).floatValue();
   else if (arg1.equals("saveResultsFile"))
      bSaveResultsFile = Boolean.valueOf(arg2);
   else if (arg1.equals("skipDialogue"))
      skipDialogue = Boolean.valueOf(arg2);
}