Java Iterable Item isIterable(Object obj)

Here you can find the source of isIterable(Object obj)

Description

is Iterable

License

Apache License

Declaration

public static boolean isIterable(Object obj) 

Method Source Code

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

import java.util.*;

public class Main {
    public static boolean isIterable(Object obj) {
        return obj.getClass().isArray() || (obj instanceof Class<?> && ((Class<?>) obj).isArray())
                || obj instanceof Iterable || obj instanceof Enumeration;
    }/*from  ww  w .  j  av a2s . c o m*/
}

Related

  1. contains(Iterable iter, Object o)
  2. getFirst(final Iterable iterable)
  3. getFirst(Iterable iterable)
  4. getFirstElement(Object maybeIterable)
  5. getFrom(Iterable iterable, int index)
  6. isPrefix(Iterable suspectedPrefix, Iterable container)
  7. iterableContains(Iterable i, E match)
  8. maxes(Iterable elements)
  9. prefix(final Iterable lines, final String prefix)