@Nonnull private BuilderInstruction22x newBuilderInstruction22x(@Nonnull Instruction22x instruction) { return new BuilderInstruction22x( instruction.getOpcode(), instruction.getRegisterA(), instruction.getRegisterB()); }
@Nonnull private BuilderInstruction22x newBuilderInstruction22x(@Nonnull Instruction22x instruction) { return new BuilderInstruction22x( instruction.getOpcode(), instruction.getRegisterA(), instruction.getRegisterB()); }
@Nonnull private BuilderInstruction22x newBuilderInstruction22x(@Nonnull Instruction22x instruction) { return new BuilderInstruction22x( instruction.getOpcode(), instruction.getRegisterA(), instruction.getRegisterB()); }
@Nonnull private BuilderInstruction22x newBuilderInstruction22x(@Nonnull Instruction22x instruction) { return new BuilderInstruction22x( instruction.getOpcode(), instruction.getRegisterA(), instruction.getRegisterB()); }
@Nonnull private BuilderInstruction22x newBuilderInstruction22x(@Nonnull Instruction22x instruction) { return new BuilderInstruction22x( instruction.getOpcode(), instruction.getRegisterA(), instruction.getRegisterB()); }
public static ImmutableInstruction22x of(Instruction22x instruction) { if (instruction instanceof ImmutableInstruction22x) { return (ImmutableInstruction22x)instruction; } return new ImmutableInstruction22x( instruction.getOpcode(), instruction.getRegisterA(), instruction.getRegisterB()); }
public void write(@Nonnull Instruction22x instruction) { try { writer.write(instruction.getOpcode().value); writer.write(instruction.getRegisterA()); writer.writeUshort(instruction.getRegisterB()); } catch (IOException ex) { throw new RuntimeException(ex); } }
public static ImmutableInstruction22x of(Instruction22x instruction) { if (instruction instanceof ImmutableInstruction22x) { return (ImmutableInstruction22x)instruction; } return new ImmutableInstruction22x( instruction.getOpcode(), instruction.getRegisterA(), instruction.getRegisterB()); }
public static ImmutableInstruction22x of(Instruction22x instruction) { if (instruction instanceof ImmutableInstruction22x) { return (ImmutableInstruction22x)instruction; } return new ImmutableInstruction22x( instruction.getOpcode(), instruction.getRegisterA(), instruction.getRegisterB()); }
public void write(@Nonnull Instruction22x instruction) { try { writer.write(getOpcodeValue(instruction.getOpcode())); writer.write(instruction.getRegisterA()); writer.writeUshort(instruction.getRegisterB()); } catch (IOException ex) { throw new RuntimeException(ex); } }
public void write(@Nonnull Instruction22x instruction) { try { writer.write(getOpcodeValue(instruction.getOpcode())); writer.write(instruction.getRegisterA()); writer.writeUshort(instruction.getRegisterB()); } catch (IOException ex) { throw new RuntimeException(ex); } }