MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / init

Method init

CodenameOne/src/com/codename1/facebook/Page.java:109–130  ·  view source on GitHub ↗
(Hashtable toCopy)

Source from the content-addressed store, hash-verified

107 }
108
109 private void init(Hashtable toCopy) {
110 super.copy(toCopy);
111 about = (String) toCopy.get("about");
112 category = (String) toCopy.get("category");
113 link = (String) toCopy.get("link");
114 about = (String) toCopy.get("about");
115 founded = (String) toCopy.get("founded");
116 website = (String) toCopy.get("website");
117 String l = (String) toCopy.get("likes");
118 if (l != null) {
119 likesCount = Integer.parseInt(l);
120 } else {
121 likesCount = -1;
122 }
123 username = (String) toCopy.get("username");
124
125 Hashtable cover = (Hashtable) toCopy.get("cover");
126 if (cover != null) {
127 coverId = (String) cover.get("cover_id");
128 coverLink = (String) cover.get("source");
129 }
130 }
131
132 /// {@inheritDoc}
133 @Override

Callers 2

PageMethod · 0.95
copyMethod · 0.95

Calls 4

parseIntMethod · 0.95
getMethod · 0.95
copyMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected