-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParcel11.java
More file actions
51 lines (37 loc) · 978 Bytes
/
Copy pathParcel11.java
File metadata and controls
51 lines (37 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package NestedInnerClasses;
import InnerClasses.Contents;
import InnerClasses.Destination;
/**
* Created by theartiste on 1/6/16.
*/
public class Parcel11 {
private static class ParcelContents implements Contents {
private int value;
public int value() {
return value;
}
}
protected static class ParcelDestination implements Destination {
String label;
private ParcelDestination(String whereTo) {
label = whereTo;
}
public String readLabel() {
return label;
}
public static void f() {
}
static int x = 10;
static class Anotherlevel {
public static void f() {
}
static int x = 10;
}
}
public static Destination destination(String s) {
return new ParcelDestination(s);
}
public static Contents contents() {
return new ParcelContents();
}
}