private Bundle getAnalyticsParameters() { Bundle params = new Bundle(); params.putString(AnalyticsEvents.PARAMETER_LIKE_VIEW_STYLE, likeViewStyle.toString()); params.putString( AnalyticsEvents.PARAMETER_LIKE_VIEW_AUXILIARY_POSITION, auxiliaryViewPosition.toString()); params.putString( AnalyticsEvents.PARAMETER_LIKE_VIEW_HORIZONTAL_ALIGNMENT, horizontalAlignment.toString()); params.putString( AnalyticsEvents.PARAMETER_LIKE_VIEW_OBJECT_ID, Utility.coerceValueIfNullOrEmpty(objectId, "")); params.putString(AnalyticsEvents.PARAMETER_LIKE_VIEW_OBJECT_TYPE, objectType.toString()); return params; }
@Override protected boolean passesFilter(ObjectType object, String constraint) { String repr = object.toString().toLowerCase(); if (repr.startsWith(constraint)) return true; else { final String[] words = repr.split(" "); final int wordCount = words.length; for (int i = 0; i < wordCount; i++) { if (words[i].startsWith(constraint)) return true; } } return false; }
@Override public String toString() { return "<" + m_object.toString() + ">"; }