List of usage examples for com.google.common.primitives Longs indexOf
public static int indexOf(long[] array, long[] target)
From source file:com.analog.lyric.dimple.model.variables.VariableBlock.java
@NonNullByDefault(false) @Override/* ww w .j av a 2 s . co m*/ public int indexOf(Object obj) { if (obj instanceof Variable) { Variable var = (Variable) obj; if (var.getRootGraph() == requireParentGraph().getRootGraph()) { return Longs.indexOf(_variableGraphTreeIds, var.getGraphTreeId()); } } return -1; }