类 FilterImpl

  • 所有已实现的接口:
    Filter

    public class FilterImpl
    extends java.lang.Object
    implements Filter
    • 构造器概要

      构造器 
      构造器 说明
      FilterImpl​(java.lang.String filterStr)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      boolean equals​(java.lang.Object o)
      Compares this Filter to another Filter.
      int hashCode()
      Returns the hashCode for this Filter.
      boolean match​(java.util.Dictionary<java.lang.String,​?> dctnr)
      Filter using a Dictionary with case insensitive key lookup.
      boolean match​(ServiceReference sr)
      Filter using a service's properties.
      boolean matchCase​(java.util.Dictionary<java.lang.String,​?> dctnr)
      Filter using a Dictionary.
      boolean matches​(java.util.Map<java.lang.String,​?> map)
      Filter using a Map.
      java.lang.String toString()
      Returns this Filter's filter string.
      • 从类继承的方法 java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 方法详细资料

      • match

        public boolean match​(ServiceReference sr)
        从接口复制的说明: Filter
        Filter using a service's properties.

        This Filter is executed using the keys and values of the referenced service's properties. The keys are looked up in a case insensitive manner.

        指定者:
        match 在接口中 Filter
        参数:
        sr - The reference to the service whose properties are used in the match.
        返回:
        true if the service's properties match this Filter; false otherwise.
      • match

        public boolean match​(java.util.Dictionary<java.lang.String,​?> dctnr)
        从接口复制的说明: Filter
        Filter using a Dictionary with case insensitive key lookup. This Filter is executed using the specified Dictionary's keys and values. The keys are looked up in a case insensitive manner.
        指定者:
        match 在接口中 Filter
        参数:
        dctnr - The Dictionary whose key/value pairs are used in the match.
        返回:
        true if the Dictionary's values match this filter; false otherwise.
      • matchCase

        public boolean matchCase​(java.util.Dictionary<java.lang.String,​?> dctnr)
        从接口复制的说明: Filter
        Filter using a Dictionary. This Filter is executed using the specified Dictionary's keys and values. The keys are looked up in a normal manner respecting case.
        指定者:
        matchCase 在接口中 Filter
        参数:
        dctnr - The Dictionary whose key/value pairs are used in the match.
        返回:
        true if the Dictionary's values match this filter; false otherwise.
      • matches

        public boolean matches​(java.util.Map<java.lang.String,​?> map)
        从接口复制的说明: Filter
        Filter using a Map. This Filter is executed using the specified Map's keys and values. The keys are looked up in a normal manner respecting case.
        指定者:
        matches 在接口中 Filter
        参数:
        map - The Map whose key/value pairs are used in the match. Maps with null key or values are not supported. A null value is considered not present to the filter.
        返回:
        true if the Map's values match this filter; false otherwise.
      • equals

        public boolean equals​(java.lang.Object o)
        从接口复制的说明: Filter
        Compares this Filter to another Filter.

        This implementation returns the result of calling this.toString().equals(obj.toString()).

        指定者:
        equals 在接口中 Filter
        覆盖:
        equals 在类中 java.lang.Object
        参数:
        o - The object to compare against this Filter.
        返回:
        If the other object is a Filter object, then returns the result of calling this.toString().equals(obj.toString()); false otherwise.
      • hashCode

        public int hashCode()
        从接口复制的说明: Filter
        Returns the hashCode for this Filter.

        This implementation returns the result of calling this.toString().hashCode().

        指定者:
        hashCode 在接口中 Filter
        覆盖:
        hashCode 在类中 java.lang.Object
        返回:
        The hashCode of this Filter.
      • toString

        public java.lang.String toString()
        从接口复制的说明: Filter
        Returns this Filter's filter string.

        The filter string is normalized by removing whitespace which does not affect the meaning of the filter.

        指定者:
        toString 在接口中 Filter
        覆盖:
        toString 在类中 java.lang.Object
        返回:
        This Filter's filter string.