@Test void isExpressionMatchShouldReturnFalseWhenOtherValue() { assertThat(new PrefixedWildcard(NAME).isExpressionMatch("other")) .isFalse(); }
@Override public boolean isExpressionMatch(String name) { return name.startsWith(prefix); }
PrefixedWildcard implements MailboxNameExpression { @Override public boolean isExpressionMatch(String name) { return name.startsWith(prefix); } }
PrefixedWildcard implements MailboxNameExpression { @Override public boolean isExpressionMatch(String name) { return name.startsWith(prefix); } PrefixedWildcard(String prefix); }
PrefixedWildcard implements MailboxNameExpression { @Override public boolean isExpressionMatch(String name) { return name.startsWith(prefix); } PrefixedWildcard(String prefix); @Override boolean isExpressionMatch(String name); @Override String getCombinedName(); @Override boolean isWild(); @Override MailboxNameExpression includeChildren(); @Override final boolean equals(Object o); @Override final int hashCode(); }
PrefixedWildcard implements MailboxNameExpression { @Override public boolean isExpressionMatch(String name) { return name.startsWith(prefix); } PrefixedWildcard(String prefix); @Override boolean isExpressionMatch(String name); @Override String getCombinedName(); @Override boolean isWild(); @Override MailboxNameExpression includeChildren(); @Override final boolean equals(Object o); @Override final int hashCode();  }