Code examples for AbstractPreferences

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
31:	AbstractPreferences pref = (AbstractPreferences) parent.node("mock"); 
-
41:	pref.addPreferenceChangeListener(pl); 
-
43:	pref.putInt("key_int", Integer.MAX_VALUE); 
-
48:	pref.removePreferenceChangeListener(pl); 
Full Snippet Info
5
CodeRank
32:	AbstractPreferences pref = (AbstractPreferences) parent.node("mock"); 
-
60:	pref.addNodeChangeListener(nl); 
61:	Preferences child1 = pref.node("mock1"); 
-
72:	pref.removeNodeChangeListener(nl); 
Full Snippet Info
5
CodeRank
32:	AbstractPreferences pref = (AbstractPreferences) parent.node("mock"); 
-
60:	pref.addNodeChangeListener(nl); 
61:	Preferences child1 = pref.node("mock1"); 
-
72:	pref.removeNodeChangeListener(nl); 
Full Snippet Info
5
CodeRank
882:	parent.addPreferenceChangeListener(mpcl); 
-
886:	parent.node("new node"); 
-
888:	parent.putInt("IntValue", 33); 
-
890:	assertEquals(33, parent.getInt("IntValue", 22)); 
-
892:	assertEquals(22, parent.getInt("Missed Value", 22)); 
Full Snippet Info
5
CodeRank