public class CollectionClassReplacement extends Object implements MethodReplacementClass
CONSUME_INSTANCE_METHOD_NAME| Constructor and Description |
|---|
CollectionClassReplacement() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
contains(Collection c,
Object o,
String idTemplate) |
static boolean |
containsAll(Collection caller,
Collection other,
String idTemplate) |
Class<?> |
getTargetClass() |
static boolean |
isEmpty(Collection caller,
String idTemplate)
This function is called only when the caller is non-null.
|
static boolean |
remove(Collection caller,
Object obj,
String idTemplate) |
static boolean |
removeAll(Collection caller,
Collection other,
String idTemplate) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTargetClass, getTargetClassName, isAvailablepublic Class<?> getTargetClass()
getTargetClass in interface MethodReplacementClasspublic static boolean contains(Collection c, Object o, String idTemplate)
c - o - idTemplate - public static boolean containsAll(Collection caller, Collection other, String idTemplate)
public static boolean isEmpty(Collection caller, String idTemplate)
The closer the heuristic value is to 1, the closer the collection is of being empty.
caller - a non-null Collection instanceidTemplate - public static boolean remove(Collection caller, Object obj, String idTemplate)
public static boolean removeAll(Collection caller, Collection other, String idTemplate)
Copyright © 2016–2024. All rights reserved.