### Question:
LongArray implements Matrix, ImmutableBean, Serializable { public static LongArray filled(int size) { if (size == 0) { return EMPTY; } return new LongArray(new long[size]); } private  LongArray(long[] array); static LongArray of(); static LongArray of(long value); static LongArray of(long value1, long value2); static LongArray of(long value1, long value2, long value3); static LongArray of(long value1, long value2, long value3, long value4); static LongArray of(long value1, long value2, long value3, long value4, long value5); static LongArray of(long value1, long value2, long value3, long value4, long value5, long value6); static LongArray of(
      long value1,
      long value2,
      long value3,
      long value4,
      long value5,
      long value6,
      long value7); static LongArray of(
      long value1,
      long value2,
      long value3,
      long value4,
      long value5,
      long value6,
      long value7,
      long value8); static LongArray of(
      long value1,
      long value2,
      long value3,
      long value4,
      long value5,
      long value6,
      long value7,
      long value8,
      long... otherValues); static LongArray of(int size, IntToLongFunction valueFunction); static LongArray of(LongStream stream); static LongArray ofUnsafe(long[] array); static LongArray copyOf(Collection<Long> collection); static LongArray copyOf(long[] array); static LongArray copyOf(long[] array, int fromIndex); static LongArray copyOf(long[] array, int fromIndexInclusive, int toIndexExclusive); static LongArray filled(int size); static LongArray filled(int size, long value); @Override int dimensions(); @Override int size(); boolean isEmpty(); long get(int index); boolean contains(long value); int indexOf(long value); int lastIndexOf(long value); void copyInto(long[] destination, int offset); LongArray subArray(int fromIndexInclusive); LongArray subArray(int fromIndexInclusive, int toIndexExclusive); long[] toArray(); long[] toArrayUnsafe(); List<Long> toList(); LongStream stream(); void forEach(IntLongConsumer action); LongArray with(int index, long newValue); LongArray plus(long amount); LongArray minus(long amount); LongArray multipliedBy(long factor); LongArray dividedBy(long divisor); LongArray map(LongUnaryOperator operator); LongArray mapWithIndex(IntLongToLongFunction function); LongArray plus(LongArray other); LongArray minus(LongArray other); LongArray multipliedBy(LongArray other); LongArray dividedBy(LongArray other); LongArray combine(LongArray other, LongBinaryOperator operator); long combineReduce(LongArray other, LongTernaryOperator operator); LongArray concat(long... arrayToConcat); LongArray concat(LongArray arrayToConcat); LongArray sorted(); long min(); long max(); long sum(); long reduce(long identity, LongBinaryOperator operator); @Override MetaBean metaBean(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static final LongArray EMPTY; }### Answer:
@Test public void test_filled() { assertContent(LongArray.filled(0)); assertContent(LongArray.filled(3), 0, 0, 0); }
@Test public void test_filled_withValue() { assertContent(LongArray.filled(0, 1)); assertContent(LongArray.filled(3, 1), 1, 1, 1); }