Here you can find the source of containsAFloatingPointNumber(List
public static boolean containsAFloatingPointNumber(List<Number> values)
//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; } }