Java List Contain containsAFloatingPointNumber(List values)

Here you can find the source of containsAFloatingPointNumber(List values)

Description

contains A Floating Point Number

License

Open Source License

Declaration

public static boolean containsAFloatingPointNumber(List<Number> values) 

Method Source Code

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

import java.util.List;

public class Main {
    public static boolean containsAFloatingPointNumber(List<Number> values) {
        for (Number value : values) {
            if (isAFloatingPointNumber(value)) {
                return true;
            }/*from   w  w  w  .  jav a  2s  .  c o m*/
        }

        return false;
    }

    public static boolean isAFloatingPointNumber(Number value) {
        return value instanceof Double || value instanceof Float;
    }
}

Related

  1. contains(List list, String string)
  2. contains(List list1, List list2)
  3. contains(List container, List list, Comparator comparator)
  4. contains(String str, List list)
  5. contains1(final String id, final List idList)
  6. containsAll(List list, T... items)
  7. containsAllIgnoreCase(List left, List right)
  8. containsAny(final String projectName, final List indicators)
  9. containsAny(List value, Object[] values)