@Test void fill() { Assertions.assertEquals(9, StackUtils.fill(new Stack<>(), new Object(), 9).size()); }
public static <T> Stack<T> fill(Stack<T> stack, T object, int amount) { for (int i = 0; i < amount; i++) { stack.push(object); } return stack; }
StackUtils { public static <T> Stack<T> fill(Stack<T> stack, T object, int amount) { for (int i = 0; i < amount; i++) { stack.push(object); } return stack; } }
StackUtils { public static <T> Stack<T> fill(Stack<T> stack, T object, int amount) { for (int i = 0; i < amount; i++) { stack.push(object); } return stack; } private  StackUtils(); }
StackUtils { public static <T> Stack<T> fill(Stack<T> stack, T object, int amount) { for (int i = 0; i < amount; i++) { stack.push(object); } return stack; } private  StackUtils(); @SafeVarargs static Stack<T> push(Stack<T> stack, T... values); static Stack<T> popSilently(Stack<T> stack, int amount); static Stack<T> fill(Stack<T> stack, T object, int amount); static Stack<T> reverse(Stack<T> stack); static Stack<T> of(Collection<? extends T> collection); }
StackUtils { public static <T> Stack<T> fill(Stack<T> stack, T object, int amount) { for (int i = 0; i < amount; i++) { stack.push(object); } return stack; } private  StackUtils(); @SafeVarargs static Stack<T> push(Stack<T> stack, T... values); static Stack<T> popSilently(Stack<T> stack, int amount); static Stack<T> fill(Stack<T> stack, T object, int amount); static Stack<T> reverse(Stack<T> stack); static Stack<T> of(Collection<? extends T> collection);  }