/** * Instantiates a new block option. * * @param szx the szx * @param m the m * @param num the num */ public BlockOption(int szx, boolean m, int num) { this.setSzx(szx); this.setM(m); this.setNum(num); }
/** * Instantiates a new block option with the same values as the specified * block option. * * @param origin the origin * @throws NullPointerException if the specified block option is null */ public BlockOption(BlockOption origin) { if (origin == null) throw new NullPointerException(); this.setSzx(origin.getSzx()); this.setM(origin.isM()); this.setNum(origin.getNum()); }