Java Array Value Any anyToString(Object o, boolean noneNull)

Here you can find the source of anyToString(Object o, boolean noneNull)

Description

any To String

License

Open Source License

Declaration

public static String anyToString(Object o, boolean noneNull) 

Method Source Code

//package com.java2s;

public class Main {
    public static final String EMPTY_STRING = "";

    public static String anyToString(Object o, boolean noneNull) {
        if (null == o && !noneNull) {
            return null;
        }//from  w w w . j a va 2s .  c  o m

        return (null == o) ? EMPTY_STRING : o.toString();
    }
}

Related

  1. anyNull(Object... args)
  2. anyNull(Object... objects)
  3. anyNull(Object... objs)
  4. anyNulls(Object... items)
  5. anyToDoubleOrElse(Object any, double orElse)
  6. anyTrue(boolean[] booleans)
  7. anyTrue(boolean[] booleans)
  8. anyValuesTrue(boolean[] booleanArray)