question: void storeFence ( @ NonNull StorableFence fence ) { Set < String > setTmp = mPrefs . getStringSet ( mPrefix + FENCE_ID_SET_KEY , null ) ; HashSet < String > fenceIdSet ; if ( setTmp == null ) { fenceIdSet = new HashSet < > ( ) ; } else { fenceIdSet = new HashSet < > ( setTmp ) ; } SharedPreferences . Editor editor = mPrefs . edit ( ) ; editor . putString ( mPrefix + fence . getId ( ) , StorableFence . fenceToString ( fence ) ) ; fenceIdSet . add ( fence . getId ( ) ) ; editor . putStringSet ( mPrefix + FENCE_ID_SET_KEY , fenceIdSet ) ; editor . apply ( ) ; }
target:  Store a fence in the store