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

Method iterator

src/com/sun/jna/Structure.java:560–567  ·  view source on GitHub ↗

Simple implementation so that toString() doesn't break. Provides an iterator over a snapshot of this Set.

()

Source from the content-addressed store, hash-verified

558 Provides an iterator over a snapshot of this Set.
559 */
560 @Override
561 public Iterator<Structure> iterator() {
562 Structure[] e = new Structure[count];
563 if (count > 0) {
564 System.arraycopy(elements, 0, e, 0, count);
565 }
566 return Arrays.asList(e).iterator();
567 }
568 }
569
570 static Set<Structure> busy() {

Calls

no outgoing calls