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

hydra.langs.avro.schema.Fixed Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
// Note: this is an automatically generated file. Do not edit.

package hydra.langs.avro.schema;

import java.io.Serializable;

public class Fixed implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/langs/avro/schema.Fixed");
  
  public static final hydra.core.Name FIELD_NAME_SIZE = new hydra.core.Name("size");
  
  /**
   * an integer, specifying the number of bytes per value
   */
  public final Integer size;
  
  public Fixed (Integer size) {
    java.util.Objects.requireNonNull((size));
    this.size = size;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof Fixed)) {
      return false;
    }
    Fixed o = (Fixed) (other);
    return size.equals(o.size);
  }
  
  @Override
  public int hashCode() {
    return 2 * size.hashCode();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy