public static boolean isOnlyEmojis(String string) {
    return string != null && EmojiParser.removeAllEmojis(string).isEmpty();
  }
Tests if a given String only contains emojis.

@param string the string to test

@return true if the string only contains emojis, false else
src/main/java/com/vdurmont/emoji/EmojiManager.java