[java] How to get index of an item in java.util.Set