Mercurial > hg > Members > sugi > MessagePack-java
view src/test/java/org/msgpack/testclasses/PrimitiveTypeFieldsClassNotNullable.java @ 0:cb825acd883a
first commit
author | sugi |
---|---|
date | Sat, 18 Oct 2014 15:06:15 +0900 |
parents | |
children |
line wrap: on
line source
package org.msgpack.testclasses; import org.junit.Ignore; import org.msgpack.annotation.Beans; import org.msgpack.annotation.Message; import org.msgpack.annotation.NotNullable; @Ignore @Message @Beans public class PrimitiveTypeFieldsClassNotNullable { @NotNullable public byte f0; @NotNullable public short f1; @NotNullable public int f2; @NotNullable public long f3; @NotNullable public float f4; @NotNullable public double f5; @NotNullable public boolean f6; public PrimitiveTypeFieldsClassNotNullable() {} public byte getF0() { return f0; } @NotNullable public void setF0(byte f0) { this.f0 = f0; } @NotNullable public short getF1() { return f1; } @NotNullable public void setF1(short f1) { this.f1 = f1; } @NotNullable public int getF2() { return f2; } @NotNullable public void setF2(int f2) { this.f2 = f2; } @NotNullable public long getF3() { return f3; } @NotNullable public void setF3(long f3) { this.f3 = f3; } @NotNullable public float getF4() { return f4; } @NotNullable public void setF4(float f4) { this.f4 = f4; } @NotNullable public double getF5() { return f5; } @NotNullable public void setF5(double f5) { this.f5 = f5; } @NotNullable public boolean isF6() { return f6; } @NotNullable public void setF6(boolean f6) { this.f6 = f6; } @Override public boolean equals(Object o) { if (! (o instanceof PrimitiveTypeFieldsClassNotNullable)) { return false; } PrimitiveTypeFieldsClassNotNullable that = (PrimitiveTypeFieldsClassNotNullable) o; if (f0 != that.f0) { return false; } if (f1 != that.f1) { return false; } if (f2 != that.f2) { return false; } if (f3 != that.f3) { return false; } if (f4 != that.f4) { return false; } if (f5 != that.f5) { return false; } if (f6 != that.f6) { return false; } return true; } }