示例#1
0
 @Override
 public void validate() throws StrictJsonException {
   super.validate();
   if (mXSize <= 0)
     throw new StrictJsonException("XSize must be defined and must be greater than 0");
   if (mYSize <= 0)
     throw new StrictJsonException("XSize must be defined and must be greater than 0");
   if (mZSize <= 0)
     throw new StrictJsonException("XSize must be defined and must be greater than 0");
   if (mBlocksPerTick < 0) throw new StrictJsonException("BlocksPerTick must be greater than 0");
 }