Example usage for com.google.common.primitives Longs lastIndexOf

List of usage examples for com.google.common.primitives Longs lastIndexOf

Introduction

In this page you can find the example usage for com.google.common.primitives Longs lastIndexOf.

Prototype

public static int lastIndexOf(long[] array, long target) 

Source Link

Document

Returns the index of the last appearance of the value target in array .

Usage

From source file:com.analog.lyric.dimple.model.variables.VariableBlock.java

@NonNullByDefault(false)
@Override/*from   w w  w  .j  a  v  a 2s  .  c  o m*/
public int lastIndexOf(Object obj) {
    if (obj instanceof Variable) {
        Variable var = (Variable) obj;
        if (var.getRootGraph() == requireParentGraph().getRootGraph()) {
            return Longs.lastIndexOf(_variableGraphTreeIds, var.getGraphTreeId());
        }
    }

    return -1;
}