@Override protected DecimalProperty create() { return new DecimalProperty(); }
@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if (!(obj instanceof DoubleProperty)) { return false; } DoubleProperty other = (DoubleProperty) obj; if (_default == null) { if (other._default != null) { return false; } } else if (!_default.equals(other._default)) { return false; } return true; } }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((_default == null) ? 0 : _default.hashCode()); return result; }
return property .example(annotation.example()) .description(annotation.value()); return property .example(annotation.example()) .description(annotation.value());
@Override protected boolean isType(String type, String format) { return DecimalProperty.isType(type, format); }
public DecimalProperty readOnly() { this.setReadOnly(Boolean.TRUE); return this; }
public DecimalProperty example(String example) { this.setExample(example); return this; }
private static Map<String, Property> initProperties() { Map<String, Property> properties = new LinkedHashMap<>(); properties.put(PROPERTY_ONE_NAME, new StringProperty() .example(PROPERTY_ONE_EXAMPLE) .required(true) .description(PROPERTY_ONE_DESCRIPTION)); properties.put(PROPERTY_TWO_NAME, new StringProperty() .example(PROPERTY_TWO_EXAMPLE) .required(true) .description(PROPERTY_TWO_DESCRIPTION)); IntegerProperty integerProp = new IntegerProperty(); LongProperty longProp = new LongProperty(); BooleanProperty booleanProp = new BooleanProperty(); integerProp.setExample(""); longProp.setExample(""); booleanProp.setExample(""); properties.put(ARRAY_PROP_NAME, new ArrayProperty().example("").description("")); properties.put(DOUBLE_PROP_NAME, new DoubleProperty().example("").description("")); properties.put(FLOAT_PROP_NAME, new FloatProperty().example("").description("")); properties.put(INTEGER_PROP_NAME, integerProp.description("")); properties.put(LONG_PROP_NAME, longProp.description("")); properties.put(BOOLEAN_PROP_NAME, booleanProp.description("")); properties.put(OBJECT_PROP_NAME, new ObjectProperty().example("").description("")); return properties; } }
property = new DecimalProperty();
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((_default == null) ? 0 : _default.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if (!(obj instanceof FloatProperty)) { return false; } FloatProperty other = (FloatProperty) obj; if (_default == null) { if (other._default != null) { return false; } } else if (!_default.equals(other._default)) { return false; } return true; } }
if (Objects.equal(typeName, "decimal")) { _matched=true; _switchResult = new DecimalProperty();
} else if (BigDecimal.class == objectClass) { swaggerProperty = new DecimalProperty(); } else if (boolean.class == objectClass || Boolean.class == objectClass) {
} else if (BigDecimal.class == objectClass) { swaggerProperty = new DecimalProperty(); } else if (boolean.class == objectClass || Boolean.class == objectClass) {