- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Gson g =
new Gson()
GsonBuilder gsonBuilder;gsonBuilder.create()
new GsonBuilder().create()
- Smart code suggestions by Codota
}
private RestrictionEntry buildBooleanRestriction(Context ctxt, Bundle current) { RestrictionEntry entry= new RestrictionEntry(RESTRICTION_BOOLEAN, current.getBoolean(RESTRICTION_BOOLEAN, false)); entry.setTitle(ctxt.getString(R.string.boolean_restriction_title)); entry.setDescription(ctxt.getString(R.string.boolean_restriction_desc)); return(entry); }
private RestrictionEntry buildChoiceRestriction(Context ctxt, Bundle current) { RestrictionEntry entry= new RestrictionEntry(RESTRICTION_CHOICE, current.getString(RESTRICTION_CHOICE)); entry.setTitle(ctxt.getString(R.string.choice_restriction_title)); entry.setChoiceEntries(ctxt, R.array.display_values); entry.setChoiceValues(ctxt, R.array.restriction_values); return(entry); }
private RestrictionEntry buildMultiSelectRestriction(Context ctxt, Bundle current) { RestrictionEntry entry= new RestrictionEntry(RESTRICTION_MULTI, current.getStringArray(RESTRICTION_MULTI)); entry.setTitle("A Multi-Select Restriction"); entry.setChoiceEntries(ctxt, R.array.display_values); entry.setChoiceValues(ctxt, R.array.restriction_values); return(entry); } }