MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / Ary

Method Ary

chapter16/src/main/java/com/seaofnodes/simple/Ary.java:12–12  ·  view source on GitHub ↗
(E[] es)

Source from the content-addressed store, hash-verified

10 public int _len;
11
12 public Ary(E[] es) { this(es,es.length); }
13 public Ary(E[] es, int len) { if( es.length==0 ) es=Arrays.copyOf(es,1); _es=es; _len=len; }
14 @SuppressWarnings("unchecked")
15 public Ary(Class<E> clazz) { this((E[]) Array.newInstance(clazz, 1),0); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected