Java Collection First first(Collection c)

Here you can find the source of first(Collection c)

Description

first

License

Apache License

Declaration

private static <T> T first(Collection<T> c) 

Method Source Code

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

import java.util.Collection;

public class Main {
    private static <T> T first(Collection<T> c) {
        return c.iterator().next();
    }//from w  ww  . j av  a  2  s .co m
}

Related

  1. first(Collection collection)
  2. first(Collection collection)
  3. first(Collection values)
  4. first(Collection collection)
  5. first(Collection self)
  6. first(Collection c)
  7. first(Collection collection)
  8. first(Collection collection)
  9. firstElement(Collection in)