All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wordnik.swagger.models.properties.FloatProperty Maven / Gradle / Ivy

The newest version!
package com.wordnik.swagger.models.properties;

import com.wordnik.swagger.models.Xml;

public class FloatProperty extends AbstractNumericProperty implements Property {
  public FloatProperty() {
    super.type = "number";
    super.format = "float";
  }
  public FloatProperty xml(Xml xml) {
    this.setXml(xml);
    return this;
  }

  public FloatProperty example(Float example) {
    this.setExample(String.valueOf(example));
    return this;
  }

  public static boolean isType(String type, String format) {
    if("number".equals(type) && "float".equals(format))
      return true;
    else return false;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy