@Test public void testIsEmpty() { pe.setWordTokens(Collections.singletonList(token)); Assert.assertFalse(pe.isEmpty()); pe.setWordTokens(Collections.emptyList()); Assert.assertTrue(pe.isEmpty()); }
public boolean isEmpty() { return words == null || words.isEmpty(); }
PatternExtract { public boolean isEmpty() { return words == null || words.isEmpty(); } }
PatternExtract { public boolean isEmpty() { return words == null || words.isEmpty(); } PatternExtract(final Entity from, final Entity to, final int start, final int end); }
PatternExtract { public boolean isEmpty() { return words == null || words.isEmpty(); } PatternExtract(final Entity from, final Entity to, final int start, final int end); Entity getFrom(); Entity getTo(); int getStart(); int getEnd(); void setWordTokens(final List<WordToken> words); List<WordToken> getWordTokens(); boolean contains(final String documentText, final String... needles); String getCoveredText(final String documentText); String getText(); boolean isEmpty(); }
PatternExtract { public boolean isEmpty() { return words == null || words.isEmpty(); } PatternExtract(final Entity from, final Entity to, final int start, final int end); Entity getFrom(); Entity getTo(); int getStart(); int getEnd(); void setWordTokens(final List<WordToken> words); List<WordToken> getWordTokens(); boolean contains(final String documentText, final String... needles); String getCoveredText(final String documentText); String getText(); boolean isEmpty();  }