mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-03 02:37:31 +00:00
* [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521)
34 lines
1,005 B
Java
34 lines
1,005 B
Java
// automatically generated by the FlatBuffers compiler, do not modify
|
|
|
|
import java.nio.*;
|
|
import java.lang.*;
|
|
import java.util.*;
|
|
import com.google.flatbuffers.*;
|
|
|
|
public class MovieT {
|
|
private CharacterUnion mainCharacter;
|
|
private CharacterUnion[] characters;
|
|
|
|
public CharacterUnion getMainCharacter() { return mainCharacter; }
|
|
|
|
public void setMainCharacter(CharacterUnion mainCharacter) { this.mainCharacter = mainCharacter; }
|
|
|
|
public CharacterUnion[] getCharacters() { return characters; }
|
|
|
|
public void setCharacters(CharacterUnion[] characters) { this.characters = characters; }
|
|
|
|
|
|
public MovieT() {
|
|
this.mainCharacter = null;
|
|
this.characters = null;
|
|
}
|
|
public static MovieT deserializeFromBinary(byte[] fbBuffer) {
|
|
return Movie.getRootAsMovie(ByteBuffer.wrap(fbBuffer)).unpack();
|
|
}
|
|
public byte[] serializeToBinary() {
|
|
FlatBufferBuilder fbb = new FlatBufferBuilder();
|
|
Movie.finishMovieBuffer(fbb, Movie.pack(fbb, this));
|
|
return fbb.sizedByteArray();
|
|
}
|
|
}
|
|
|