Java Integer Clamp clampI(int a, int min, int max)

Here you can find the source of clampI(int a, int min, int max)

Description

clamp I

License

LGPL

Declaration

@Deprecated
public static int clampI(int a, int min, int max) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    /**/*from w  w w .  java  2 s.  c  om*/
     * @deprecated use {@link clamp} instead
     */
    @Deprecated
    public static int clampI(int a, int min, int max) {

        return a < min ? min : (a > max ? max : a);
    }
}

Related

  1. clampAngle(int angle)
  2. clampByte(int in)
  3. clampColor(int c)
  4. clampColorInt(int color)
  5. CLAMPED_Wr(long ITERW, int FBZCP)
  6. clampInt(final int min, final int max, final int value)
  7. clampInt(final int min, final int value, final int max)
  8. clampInt(int value, int min, int max)
  9. clampInt(int value, int min, int max)