@Test public void testContainsPattern() throws Exception { final ExtraNote note = new ExtraNote("domr dsf sdf sdf \n sdf http: assertTrue(note.containsPattern(null, Pattern.compile(Pattern.quote("http: assertTrue(note.containsPattern(new File(System.getProperty("user.home")), Pattern.compile(Pattern.quote("http: assertTrue(note.containsPattern(null, Pattern.compile(Pattern.quote("http: assertTrue(note.containsPattern(new File(System.getProperty("user.home")), Pattern.compile(Pattern.quote("http: assertTrue(note.containsPattern(null, Pattern.compile(Pattern.quote("num=1341507344")))); assertTrue(note.containsPattern(new File(System.getProperty("user.home")), Pattern.compile(Pattern.quote("num=1341507344")))); assertFalse(note.containsPattern(null, Pattern.compile(Pattern.quote("yab3"), Pattern.CASE_INSENSITIVE))); }
@Override public boolean containsPattern(@Nullable final File baseFolder, @Nonnull final Pattern pattern) { return pattern.matcher(this.text).find(); }
ExtraNote extends Extra<String> { @Override public boolean containsPattern(@Nullable final File baseFolder, @Nonnull final Pattern pattern) { return pattern.matcher(this.text).find(); } }
ExtraNote extends Extra<String> { @Override public boolean containsPattern(@Nullable final File baseFolder, @Nonnull final Pattern pattern) { return pattern.matcher(this.text).find(); } ExtraNote(@Nonnull final String text); }
ExtraNote extends Extra<String> { @Override public boolean containsPattern(@Nullable final File baseFolder, @Nonnull final Pattern pattern) { return pattern.matcher(this.text).find(); } ExtraNote(@Nonnull final String text); @Override boolean containsPattern(@Nullable final File baseFolder, @Nonnull final Pattern pattern); @Override boolean equals(@Nullable final Object that); @Override int hashCode(); @Override @Nonnull String getValue(); @Override @Nonnull ExtraType getType(); @Override @Nonnull String getAsString(); @Override @Nonnull String provideAsStringForSave(); }
ExtraNote extends Extra<String> { @Override public boolean containsPattern(@Nullable final File baseFolder, @Nonnull final Pattern pattern) { return pattern.matcher(this.text).find(); } ExtraNote(@Nonnull final String text); @Override boolean containsPattern(@Nullable final File baseFolder, @Nonnull final Pattern pattern); @Override boolean equals(@Nullable final Object that); @Override int hashCode(); @Override @Nonnull String getValue(); @Override @Nonnull ExtraType getType(); @Override @Nonnull String getAsString(); @Override @Nonnull String provideAsStringForSave();  }