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

Method add

chapter24/src/main/java/com/seaofnodes/simple/util/Ary.java:58–62  ·  view source on GitHub ↗

Add element in amortized constant time @param e Element to add at end of list @return true

( E e )

Source from the content-addressed store, hash-verified

56 * @param e Element to add at end of list
57 * @return true */
58 public boolean add( E e ) {
59 if( _len >= _es.length ) _es = Arrays.copyOf(_es,Math.max(1,_es.length<<1));
60 _es[_len++] = e;
61 return true;
62 }
63
64 /** Fast, constant-time, element removal. Does not preserve order
65 * @param i element to be removed

Callers 15

gccMethod · 0.95
recurCloseMethod · 0.95
basicBlockLayoutMethod · 0.95
_rpo_cfgMethod · 0.95
addAllMethod · 0.95
_prettyPrintScheduledMethod · 0.95
runMethod · 0.45
evaluateMethod · 0.45
doScheduleMethod · 0.45
doBuildCTFMethod · 0.45
buildMethod · 0.45
ScriptGeneratorClass · 0.45

Calls

no outgoing calls

Tested by 10

gccMethod · 0.76
runMethod · 0.36
evaluateMethod · 0.36
doScheduleMethod · 0.36
doBuildCTFMethod · 0.36
buildMethod · 0.36
addVariableMethod · 0.36
getTypeMethod · 0.36
genStructMethod · 0.36
recordExceptionMethod · 0.36