Java Integer Align align(int size, int alignment)

Here you can find the source of align(int size, int alignment)

Description

align

License

Apache License

Declaration

private static int align(int size, int alignment) 

Method Source Code

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

public class Main {
    private static int align(int size, int alignment) {
        return ((size / alignment) + 1) * alignment;
    }/*ww w .j a  va 2  s . co  m*/
}

Related

  1. align(int i)
  2. align(int min, int number, int max)
  3. align(int pos, int align)
  4. align(int size)
  5. align(int size, int align)
  6. align(int size, int space, int weight)
  7. align(int value, int alignment)