MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / ParcelDestination

Class ParcelDestination

innerclasses/Parcel11.java:13–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 @Override public int value() { return i; }
12 }
13 protected static final class ParcelDestination
14 implements Destination {
15 private String label;
16 private ParcelDestination(String whereTo) {
17 label = whereTo;
18 }
19 @Override
20 public String readLabel() { return label; }
21 // Nested classes can contain other static elements:
22 public static void f() {}
23 static int x = 10;
24 static class AnotherLevel {
25 public static void f() {}
26 static int x = 10;
27 }
28 }
29 public static Destination destination(String s) {
30 return new ParcelDestination(s);
31 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected