public List < T > getObjects ( ) { ArrayList < T > objects = new ArrayList <> ( ) ; Editable text = getText ( ) ; if ( hiddenContent != null ) { text = hiddenContent ; } for ( TokenImageSpan span : text . getSpans ( 0 , text . length ( ) , TokenImageSpan . class ) ) { objects . add ( span . getToken ( ) ) ; } return objects ; }
Get the list of Tokens