public static <T> int indexOfByIdentity(final Iterable<?> collection, final T item) { VerifyArgument.notNull(collection, "collection"); if (collection instanceof List<?>) { return indexOfByIdentity((List<?>) collection, item); } int i = -1; for (final Object o : collection) { ++i; if (o == item) { return i; } } return -1; }
public static <T> int indexOfByIdentity(final Iterable<?> collection, final T item) { VerifyArgument.notNull(collection, "collection"); if (collection instanceof List<?>) { return indexOfByIdentity((List<?>) collection, item); } int i = -1; for (final Object o : collection) { ++i; if (o == item) { return i; } } return -1; }
public static <T> int indexOfByIdentity(final Iterable<?> collection, final T item) { VerifyArgument.notNull(collection, "collection"); if (collection instanceof List<?>) { return indexOfByIdentity((List<?>) collection, item); } int i = -1; for (final Object o : collection) { ++i; if (o == item) { return i; } } return -1; }
indexOfByIdentity(resultTypeArguments, a) >= 0 && indexOfByIdentity(tTypeArguments, a) < 0) {
indexOfByIdentity(resultTypeArguments, a) >= 0 && indexOfByIdentity(tTypeArguments, a) < 0) {
indexOfByIdentity(resultTypeArguments, a) >= 0 && indexOfByIdentity(tTypeArguments, a) < 0) {
else if (indexOfByIdentity(owner1.getGenericParameters(), gp1) != indexOfByIdentity(owner2.getGenericParameters(), gp2)) { return false;
else if (indexOfByIdentity(owner1.getGenericParameters(), gp1) != indexOfByIdentity(owner2.getGenericParameters(), gp2)) { return false;
else if (indexOfByIdentity(owner1.getGenericParameters(), gp1) != indexOfByIdentity(owner2.getGenericParameters(), gp2)) { return false;