Package org.apache.http.cookie
Class CookieIdentityComparator
java.lang.Object
org.apache.http.cookie.CookieIdentityComparator
- All Implemented Interfaces:
Serializable,Comparator<Cookie>
@Contract(threading=IMMUTABLE)
public class CookieIdentityComparator
extends Object
implements Serializable, Comparator<Cookie>
This cookie comparator can be used to compare identity of cookies.
Cookies are considered identical if their names are equal and their domain attributes match ignoring case.
- Since:
- 4.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
CookieIdentityComparator
public CookieIdentityComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<Cookie>
-