Java Collection First firstFrom(Collection collection)

Here you can find the source of firstFrom(Collection collection)

Description

first From

License

Open Source License

Declaration

public static Object firstFrom(Collection collection) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {
    public static Object firstFrom(Collection collection) {
        return collection.iterator().next();
    }/*from  www .j av a2 s .  com*/
}

Related

  1. first(Collection collection)
  2. firstElement(Collection in)
  3. firstElement(Collection c)
  4. firstElementOf(final Collection collection)
  5. firstElementOf(final Collection items)
  6. firstFrom(Collection coll)
  7. firstNonEmpty(Collection... collections)
  8. firstNonNull(Collection collection)
  9. firstOrThat(Collection collection, T that)