@Test(expected = NumberFormatException.class) public void testFloatNaN() throws NumberFormatException { editor.setAttribute("key", Float.NaN); }
@NonNull public AttributeEditor setAttribute(@Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String key, @Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String string) { if (isInvalidField(key) || isInvalidField(string)) { return this; } partialMutations.add(new PartialAttributeMutation(key, string)); return this; }
AttributeEditor { @NonNull public AttributeEditor setAttribute(@Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String key, @Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String string) { if (isInvalidField(key) || isInvalidField(string)) { return this; } partialMutations.add(new PartialAttributeMutation(key, string)); return this; } }
AttributeEditor { @NonNull public AttributeEditor setAttribute(@Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String key, @Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String string) { if (isInvalidField(key) || isInvalidField(string)) { return this; } partialMutations.add(new PartialAttributeMutation(key, string)); return this; } AttributeEditor(@NonNull Clock clock); }
AttributeEditor { @NonNull public AttributeEditor setAttribute(@Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String key, @Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String string) { if (isInvalidField(key) || isInvalidField(string)) { return this; } partialMutations.add(new PartialAttributeMutation(key, string)); return this; } AttributeEditor(@NonNull Clock clock); @NonNull AttributeEditor setAttribute(@Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String key,
                                        @Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String string); @NonNull AttributeEditor setAttribute(@Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String key, int number); @NonNull AttributeEditor setAttribute(@Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String key, long number); @NonNull AttributeEditor setAttribute(@Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String key, float number); @NonNull AttributeEditor setAttribute(@Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String key, double number); @NonNull AttributeEditor setAttribute(@Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String key, @NonNull Date date); @NonNull AttributeEditor removeAttribute(@Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String key); void apply(); }
AttributeEditor { @NonNull public AttributeEditor setAttribute(@Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String key, @Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String string) { if (isInvalidField(key) || isInvalidField(string)) { return this; } partialMutations.add(new PartialAttributeMutation(key, string)); return this; } AttributeEditor(@NonNull Clock clock); @NonNull AttributeEditor setAttribute(@Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String key,
                                        @Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String string); @NonNull AttributeEditor setAttribute(@Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String key, int number); @NonNull AttributeEditor setAttribute(@Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String key, long number); @NonNull AttributeEditor setAttribute(@Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String key, float number); @NonNull AttributeEditor setAttribute(@Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String key, double number); @NonNull AttributeEditor setAttribute(@Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String key, @NonNull Date date); @NonNull AttributeEditor removeAttribute(@Size(min = 1, max = MAX_ATTRIBUTE_FIELD_LENGTH) @NonNull String key); void apply();  }