MCPcopy Index your code
hub / github.com/java-native-access/jna / remove

Method remove

src/com/sun/jna/Structure.java:545–556  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

543 return -1;
544 }
545 @Override
546 public boolean remove(Object o) {
547 int idx = indexOf((Structure) o);
548 if (idx != -1) {
549 if (--count >= 0) {
550 elements[idx] = elements[count];
551 elements[count] = null;
552 }
553 return true;
554 }
555 return false;
556 }
557 /** Simple implementation so that toString() doesn't break.
558 Provides an iterator over a snapshot of this Set.
559 */

Callers 15

tearDownMethod · 0.45
cleanMethod · 0.45
getCallbackMethod · 0.45
getCallbackMethodMethod · 0.45
runMethod · 0.45
readMethod · 0.45
readFieldMethod · 0.45
writeMethod · 0.45
writeFieldMethod · 0.45

Calls 1

indexOfMethod · 0.95

Tested by 3

tearDownMethod · 0.36