E
- The element type.@Immutable
public final class IdentityDeputy<E>
extends Object
Represents objects for reference equality.
Constructor and Description |
---|
IdentityDeputy(E represented)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
int |
hashCode() |
static <E> Iterator<E> |
iterator(Iterator<IdentityDeputy<E>> iterator)
Returns an iterator over the represented elements.
|
public IdentityDeputy(@Nonnull E represented)
represented
- The object represented.@Nonnull @CheckReturnValue public static <E> Iterator<E> iterator(@Nonnull Iterator<IdentityDeputy<E>> iterator)
E
- The element type.iterator
- The iterator over the deputies.public boolean equals(Object object)
equals
in class Object
public int hashCode()
hashCode
in class Object
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.