@@ -131,8 +131,9 @@ def __init__(self, extractor: ExtractorExpression[T, E], value: V):
131
131
"""
132
132
Construct a `GreaterFilter` for testing `Greater` condition.
133
133
134
- :param extractor: the {@link extractor.ValueExtractor} to use by this :class:`coherence.filter.Filter` or the
135
- name of the method to invoke via reflection
134
+ :param extractor: the :class:`coherence.extractor.ValueExtractor` to use
135
+ by this :class:`coherence.filter.Filter` or the name of the method to
136
+ invoke via reflection
136
137
:param value: the object to compare the result with
137
138
"""
138
139
super ().__init__ (extractor , value )
@@ -436,7 +437,7 @@ def __init__(
436
437
437
438
Construct a `LikeFilter` for pattern match.
438
439
439
- :param extractor_or_method: the {@link extractor.ValueExtractor} to use by this
440
+ :param extractor_or_method: the :class:`coherence. extractor.ValueExtractor` to use by this
440
441
:class:`coherence.filter.Filter` or the name of the method to invoke via reflection
441
442
:param pattern: the string pattern to compare the result with
442
443
:param escape_char: the escape character for escaping `%` and `_`
@@ -716,68 +717,96 @@ def event(filter: Filter, mask: int = MapEventFilter.KEY_SET) -> Filter:
716
717
@staticmethod
717
718
def greater (extractor_or_method : ExtractorExpression [T , E ], value : Any ) -> Filter :
718
719
"""
720
+ Returns instance of :class:`coherence.filter.GreaterFilter` to test
721
+ `Greater` condition
719
722
720
- :param extractor_or_method:
721
- :param value:
722
- :return:
723
+ :param extractor_or_method: the :class:`coherence.extractor.ValueExtractor` to use
724
+ by this :class:`coherence.filter.Filter` or the name of the method to
725
+ invoke via reflection
726
+ :param value: the object to compare the result with
727
+ :return: an instance of :class:`coherence.filter.GreaterFilter`
723
728
"""
724
729
return GreaterFilter (extractor_or_method , value )
725
730
726
731
@staticmethod
727
732
def greater_equals (extractor_or_method : ExtractorExpression [T , E ], value : Any ) -> Filter :
728
733
"""
734
+ Returns instance of :class:`coherence.filter.GreaterEqualsFilter` to
735
+ test `Greater or Equal` condition
729
736
730
- :param extractor_or_method:
731
- :param value:
732
- :return:
737
+ :param extractor_or_method: the :class:`coherence.extractor.ValueExtractor` to use
738
+ by this :class:`coherence.filter.Filter` or the name of the method to
739
+ invoke via reflection
740
+ :param value: the object to compare the result with
741
+ :return: an instance of :class:`coherence.filter.GreaterEqualsFilter`
733
742
"""
734
743
return GreaterEqualsFilter (extractor_or_method , value )
735
744
736
745
@staticmethod
737
746
def is_in (extractor_or_method : ExtractorExpression [T , E ], values : Set [Any ]) -> Filter :
738
747
"""
748
+ Returns instance of :class:`coherence.filter.InFilter` to check whether
749
+ the result of a method invocation belongs to a predefined set of values.
739
750
740
- :param extractor_or_method:
741
- :param values:
742
- :return:
751
+ :param extractor_or_method: the :class:`coherence.extractor.ValueExtractor` to use
752
+ by this :class:`coherence.filter.Filter` or the name of the method to
753
+ invoke via reflection
754
+ :param values: the Set of values that a Collection or array is tested to contain
755
+ :return: an instance of :class:`coherence.filter.InFilter`
743
756
"""
744
757
return InFilter (extractor_or_method , values )
745
758
746
759
@staticmethod
747
760
def is_not_none (extractor_or_method : ExtractorExpression [T , E ]) -> Filter :
748
761
"""
762
+ Returns instance of :class:`coherence.filter.IsNotNoneFilter` for
763
+ testing inequality to `None`.
749
764
750
- :param extractor_or_method:
751
- :return:
765
+ :param extractor_or_method: the :class:`coherence.extractor.ValueExtractor` to use
766
+ by this :class:`coherence.filter.Filter` or the name of the method to
767
+ invoke via reflection
768
+ :return: an instance of :class:`coherence.filter.IsNotNoneFilter`
752
769
"""
753
770
return IsNotNoneFilter (extractor_or_method )
754
771
755
772
@staticmethod
756
773
def is_none (extractor_or_method : ExtractorExpression [T , E ]) -> Filter :
757
774
"""
775
+ Returns instance of :class:`coherence.filter.IsNoneFilter` for
776
+ testing equality to `None`.
758
777
759
- :param extractor_or_method:
760
- :return:
778
+ :param extractor_or_method: the :class:`coherence.extractor.ValueExtractor` to use
779
+ by this :class:`coherence.filter.Filter` or the name of the method to
780
+ invoke via reflection
781
+ :return: an instance of :class:`coherence.filter.IsNoneFilter`
761
782
"""
762
783
return IsNoneFilter (extractor_or_method )
763
784
764
785
@staticmethod
765
786
def less (extractor_or_method : ExtractorExpression [T , E ], value : Any ) -> Filter :
766
787
"""
788
+ Returns instance of :class:`coherence.filter.LessFilter` for testing
789
+ `Less` condition.
767
790
768
- :param extractor_or_method:
769
- :param value:
770
- :return:
791
+ :param extractor_or_method: the :class:`coherence.extractor.ValueExtractor` to use
792
+ by this :class:`coherence.filter.Filter` or the name of the method to
793
+ invoke via reflection
794
+ :param value: the object to compare the result with
795
+ :return: an instance of :class:`coherence.filter.LessFilter`
771
796
"""
772
797
return LessFilter (extractor_or_method , value )
773
798
774
799
@staticmethod
775
800
def less_equals (extractor_or_method : ExtractorExpression [T , E ], value : Any ) -> Filter :
776
801
"""
802
+ Returns instance of :class:`coherence.filter.LessEqualsFilter` for testing
803
+ `Less or Equals` condition.
777
804
778
- :param extractor_or_method:
779
- :param value:
780
- :return:
805
+ :param extractor_or_method: the :class:`coherence.extractor.ValueExtractor` to use
806
+ by this :class:`coherence.filter.Filter` or the name of the method to
807
+ invoke via reflection
808
+ :param value: the object to compare the result with
809
+ :return: an instance of :class:`coherence.filter.LessEqualsFilter`
781
810
"""
782
811
return LessEqualsFilter (extractor_or_method , value )
783
812
@@ -786,56 +815,73 @@ def like(
786
815
extractor_or_method : ExtractorExpression [T , E ], pattern : str , escape : str = "0" , ignore_case : bool = False
787
816
) -> Filter :
788
817
"""
818
+ Returns instance of :class:`coherence.filter.LikeFilter` for for pattern match
789
819
790
- :param extractor_or_method:
791
- :param pattern:
792
- :param escape:
793
- :param ignore_case:
794
- :return:
820
+ :param extractor_or_method: the :class:`coherence.extractor.ValueExtractor` to use by this
821
+ :class:`coherence.filter.Filter` or the name of the method to invoke via reflection
822
+ :param pattern: the string pattern to compare the result with
823
+ :param escape: the escape character for escaping `%` and `_`
824
+ :param ignore_case: `true` to be case-insensitive
825
+ :return: an instance of :class:`coherence.filter.LikeFilter`
795
826
"""
796
827
return LikeFilter (extractor_or_method , pattern , escape , ignore_case )
797
828
798
829
@staticmethod
799
830
def negate (filter : Filter ) -> Filter :
800
831
"""
832
+ Returns instance of :class:`coherence.filter.NotFilter` which negates
833
+ the results of another filter.
801
834
802
- :param filter:
803
- :return:
835
+ :param filter: The Filter whose results are negated by this filter.
836
+ :return: an instance of :class:`coherence.filter.NotFilter`
804
837
"""
805
838
return NotFilter (filter )
806
839
807
840
@staticmethod
808
841
def never () -> Filter :
809
842
"""
843
+ Returns instance of :class:`coherence.filter.NeverFilter` which always
844
+ evaluates to `false`.
810
845
811
- :return:
846
+ :return: an instance of :class:`coherence.filter.NeverFilter`
812
847
"""
813
848
return NeverFilter ()
814
849
815
850
@staticmethod
816
851
def not_equals (extractor_or_method : ExtractorExpression [T , E ], value : Any ) -> Filter :
817
852
"""
853
+ Returns instance of :class:`coherence.filter.NotEqualsFilter` for testing
854
+ inequality.
818
855
819
- :param extractor_or_method:
820
- :param value:
821
- :return:
856
+ :param extractor_or_method: the :class:`coherence.extractor.ValueExtractor` to use
857
+ by this :class:`coherence.filter.Filter` or the name of the method to
858
+ invoke via reflection
859
+ :param value: the object to compare the result with
860
+ :return: an instance of :class:`coherence.filter.NotEqualsFilter`
822
861
"""
823
862
return NotEqualsFilter (extractor_or_method , value )
824
863
825
864
@staticmethod
826
865
def present () -> Filter :
827
866
"""
867
+ Returns instance of :class:`coherence.filter.PresentFilter` which
868
+ returns true for entries that currently exist in a map.
828
869
829
- :return:
870
+ :return: an instance of :class:`coherence.filter.PresentFilter`
830
871
"""
831
872
return PresentFilter ()
832
873
833
874
@staticmethod
834
875
def regex (extractor_or_method : ExtractorExpression [T , E ], regex : str ) -> Filter :
835
876
"""
877
+ Returns instance of :class:`coherence.filter.RegexFilter` which uses
878
+ the regular expression pattern match defined by the Java's
879
+ `String.matches` contract.
836
880
837
- :param extractor_or_method:
838
- :param regex:
839
- :return:
881
+ :param extractor_or_method: the :class:`coherence.extractor.ValueExtractor` to use
882
+ by this :class:`coherence.filter.Filter` or the name of the method to
883
+ invoke via reflection
884
+ :param regex: the regular expression to match the result with
885
+ :return: an instance of :class:`coherence.filter.RegexFilter`
840
886
"""
841
887
return RegexFilter (extractor_or_method , regex )
0 commit comments