hydra.langs.avro.schema.Fixed Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hydra-java Show documentation
Show all versions of hydra-java Show documentation
The Hydra language for strongly-typed transformations
// 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();
}
}