类 StartsWithMatcher

java.lang.Object
org.beetl.core.resource.StartsWithMatcher
所有已实现的接口:
Matcher

public class StartsWithMatcher extends Object implements Matcher
检查key以给定的字符串开头的匹配器
作者:
李飞 (lifei@wellbole.com)
  • 构造器详细资料

    • StartsWithMatcher

      public StartsWithMatcher()
    • StartsWithMatcher

      public StartsWithMatcher(String prefix)
  • 方法详细资料

    • withPrefix

      public StartsWithMatcher withPrefix()
    • withoutPrefix

      public StartsWithMatcher withoutPrefix()
    • match

      public String match(String key)
      从接口复制的说明: Matcher
      检查key是否匹配(满足)某种规则
      指定者:
      match 在接口中 Matcher
      参数:
      key - view路径
      返回:
      如果匹配该规则,则返回一个新的 key ,否则返回 null
    • isWithPrefix

      public final boolean isWithPrefix()
    • setWithPrefix

      public final void setWithPrefix(boolean withPrefix)
    • getPrefix

      public final String getPrefix()
    • setPrefix

      public final void setPrefix(String prefix)
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • main

      public static void main(String[] args)