spyglass-sample/src/main/java/com/linkedin/android/spyglass/sample/data/models/Person.java
@NonNull
    @Override
    public String getTextForDisplayMode(MentionDisplayMode mode) {
        switch (mode) {
            case FULL:
                return getFullName();
            case PARTIAL:
                String[] words = getFullName().split(" ");
                return (words.length > 1) ? words[0] : "";
            case NONE:
            default:
                return "";
        }
    }
@NonNull
    @Override
    public String getTextForDisplayMode(MentionDisplayMode mode) {
        switch (mode) {
            case FULL:
                return getFullName();
            case PARTIAL:
                String[] words = getFullName().split(" ");
                return (words.length > 1) ? words[0] : "";
            case NONE:
            default:
                return "";
        }
    }
@ NonNull @ Override public String getTextForDisplayMode ( MentionDisplayMode mode ) { switch ( mode ) { case FULL : return getFullName ( ) ; case PARTIAL : String [ ] words = getFullName ( ) . split ( " " ) ; return ( words . length > 1 ) ? words [ 0 ] : "" ; case NONE : default : return "" ; } }
--------------------------------------------------
--------------------------------------------------