@SuppressWarnings("unchecked")
    public final int[] getIndex(T... objArray) {
        int[] index = new int[objArray.length];
        for (int i = 0; i < index.length; i++) {
            T obj = objArray[i];
            index[i] = obj != null ? indexPool.get(obj) : -1;
        }
        return index;
    }
Return an array of indices for the given objects

@param objArray the input objects
@return a new array
jme3-core/src/main/java/com/jme3/animation/CompactArray.java