mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
unit test & comments
This commit is contained in:
@@ -5,6 +5,11 @@ package com.taobao.arthas.core.util.matcher;
|
||||
*/
|
||||
public class FalseMatcher<T> implements Matcher<T> {
|
||||
|
||||
/**
|
||||
* always return false
|
||||
* @param target
|
||||
* @return true/false
|
||||
*/
|
||||
@Override
|
||||
public boolean matching(T target) {
|
||||
return false;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.taobao.arthas.core.util.matcher;
|
||||
|
||||
/**
|
||||
* 正则表达式匹配
|
||||
* regex matcher
|
||||
* @author ralf0131 2017-01-06 13:16.
|
||||
*/
|
||||
public class RegexMatcher implements Matcher<String> {
|
||||
|
||||
@@ -5,6 +5,11 @@ package com.taobao.arthas.core.util.matcher;
|
||||
*/
|
||||
public final class TrueMatcher<T> implements Matcher<T> {
|
||||
|
||||
/**
|
||||
* always return true
|
||||
* @param target
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public boolean matching(T target) {
|
||||
return true;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.taobao.arthas.core.util.matcher;
|
||||
|
||||
/**
|
||||
* 通配符表达式匹配
|
||||
* wildcard matcher
|
||||
* @author ralf0131 2017-01-06 13:17.
|
||||
*/
|
||||
public class WildcardMatcher implements Matcher<String> {
|
||||
|
||||
Reference in New Issue
Block a user