Java Ceil Ceil(Object in, int val)

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

Description

Ceil

License

Open Source License

Declaration

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

Method Source Code

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

public class Main {
    public static final void Ceil(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 {/* w w w .java2 s .  co m*/
            for (int i = 0, s = ((Object[]) in).length; i < s; i++)
                Ceil(((Object[]) in)[i], val);
        }
    }
}

Related

  1. ceil(int dividend, int divisor)
  2. ceil(int f)
  3. ceil(int number, int divisor)
  4. ceil(int x, int quantum)
  5. ceil(long a, long b)
  6. ceil(Short a)
  7. ceil10(double a)
  8. ceil2(double d, int p)
  9. ceil2(int a, int preserveDigits)