Java List First Item isInOrder(List src, Object first, Object second)

Here you can find the source of isInOrder(List src, Object first, Object second)

Description

is In Order

License

Apache License

Declaration

private static boolean isInOrder(List<?> src, Object first, Object second) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.List;

public class Main {
    private static boolean isInOrder(List<?> src, Object first, Object second) {
        int firstIndex = src.indexOf(first);
        int secondIndex = src.indexOf(second);
        return firstIndex < secondIndex;
    }//from  w  ww . j av a2  s .c o  m
}

Related

  1. getStringFirstResult(List> llo, String reason)
  2. hasSameElement(List firstList, List secondList)
  3. isFirst(List list, V object)
  4. isFirstAnnotationOfMethod(List lines, int lineNumber)
  5. isFirstPage(List pageLines, List> rawPages)
  6. limit(List list, Long firstResult, Long maxResults)
  7. listWith(Object aFirstObject)
  8. merge(List first, List second)
  9. mergeLists(List first, List second)