Java floor Floor(Object in, int val)

Here you can find the source of Floor(Object in, int val)

Description

Floor

License

Open Source License

Declaration

public static final void Floor(Object in, int val) 

Method Source Code

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

public class Main {
    public static final void Floor(Object in, int val) {
        if (in == null)
            return;
        if (in instanceof int[]) {
            int[] inn = (int[]) in;
            for (int i = 0, s = inn.length; i < s; i++)
                if (inn[i] < val)
                    inn[i] = val;
        } else {/*from  w  w  w  . j  ava2 s  .  c o m*/
            for (int i = 0, s = ((Object[]) in).length; i < s; i++)
                Floor(((Object[]) in)[i], val);
        }
    }
}

Related

  1. floor(float x)
  2. floor(int f)
  3. floor(int number, int divisor)
  4. floor(int x, int quantum)
  5. floor(Integer a)
  6. floor(String input)
  7. floor10(double a)
  8. floor1e5(double coordinate)
  9. floor2(int a, int preserveDigits)