public interface IGenericCollectionEqualsCheck extends ICheck
List checks are tiny bit more memory friendly than Collection checks, since allocation of an Enumerator can be avoided.
Modifier and Type | Method and Description |
---|---|
<A,B> boolean |
isGenericCollectionEquals(Object caller,
Collection<A> referenceA,
Collection<B> referenceB)
Checks if the referenced element pairs are equals or both nulls.
|
<A,B> boolean isGenericCollectionEquals(Object caller, Collection<A> referenceA, Collection<B> referenceB)
caller
- end-user instance initiating the checkreferenceA
- reference to equals check against reference BreferenceB
- reference to equals check against reference AIllegalArgumentException
- if caller is nullThe MIT License (MIT) - Copyright © 2014-2015 Keld Oelykke. All Rights Reserved.