This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.tksmaru.playgound; | |
import java.lang.reflect.Constructor; | |
public class ActiveClassWithReflection { | |
private enum ErrorType { | |
LESS_MONEY("less.money", UserException.class), | |
NO_STOCK("no.stock", ShopException.class), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
public class CollectionUtils { | |
/** | |
* Listを指定したサイズ毎に分割します。 | |
* | |
* @param origin 分割元のList |