/* */ package org.jaxen.expr;
/* */
/* */ import java.util.
HashSet;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ final class
IdentitySet
/* */ {
/* 49 */ private
HashSet contents = new
HashSet();
/* */
/* */
/* */
/* */
/* */
/* */ void
add(
Object object) {
/* 56 */
IdentityWrapper wrapper = new
IdentityWrapper(
object);
/* 57 */ this.
contents.
add(
wrapper);
/* */ }
/* */
/* */ public boolean
contains(
Object object) {
/* 61 */
IdentityWrapper wrapper = new
IdentityWrapper(
object);
/* 62 */ return this.
contents.
contains(
wrapper);
/* */ }
/* */
/* */ private static class
IdentityWrapper
/* */ {
/* */ private
Object object;
/* */
/* */
IdentityWrapper(
Object object) {
/* 70 */ this.
object =
object;
/* */ }
/* */
/* */ public boolean
equals(
Object o) {
/* 74 */
IdentityWrapper w = (
IdentityWrapper)
o;
/* 75 */ return (this.
object ==
w.
object);
/* */ }
/* */
/* */ public int
hashCode() {
/* 79 */ return
System.
identityHashCode(this.
object);
/* */ }
/* */ }
/* */ }
/* Location: /Users/tommy/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar!/org/jaxen/expr/IdentitySet.class
* Java compiler version: 2 (46.0)
* JD-Core Version: 1.1.3
*/