Java List Last Item getLastSectionDays(List sections)

Here you can find the source of getLastSectionDays(List sections)

Description

get Last Section Days

License

Open Source License

Declaration

private static StringBuffer getLastSectionDays(List sections) 

Method Source Code

//package com.java2s;
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt

import java.util.List;

public class Main {
    private static StringBuffer getLastSectionDays(List sections) {
        if (sections.size() == 0) {
            return new StringBuffer();
        } else {/*from ww  w  .  j  a va  2 s  .  c o  m*/
            return (StringBuffer) sections.get(sections.size() - 1);
        }
    }
}

Related

  1. getLastElement(List list)
  2. getLastNameIndex(List list)
  3. getLastNonNullIndex(final List list)
  4. getLastOrNull(List l)
  5. getLastOrNull(List list)
  6. getLastXItems(int lastXItems, List list)
  7. isLast(List list, Object o)
  8. isLast(T object, List list)
  9. isLastIdx(List l, int idx)