EXIficient

com.siemens.ct.exi.util
Class MethodsBag

java.lang.Object
  extended by com.siemens.ct.exi.util.MethodsBag

public class MethodsBag
extends java.lang.Object

TODO Description

Version:
0.3.20081010
Author:
Daniel.Peintner.EXT@siemens.com, Joerg.Heuer@siemens.com

Constructor Summary
MethodsBag()
           
 
Method Summary
static int getCodingLength(int characteristics)
           
static int numberOf7BitBlocksToRepresent(int n)
          Returns the least number of 7 bit-blocks that is needed to represent the int n.
static int numberOf7BitBlocksToRepresent(long l)
          Returns the least number of 7 bit-blocks that is needed to represent the long l.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodsBag

public MethodsBag()
Method Detail

numberOf7BitBlocksToRepresent

public static int numberOf7BitBlocksToRepresent(int n)
Returns the least number of 7 bit-blocks that is needed to represent the int n. Returns 1 if n is 0.

Parameters:
n - integer value

numberOf7BitBlocksToRepresent

public static int numberOf7BitBlocksToRepresent(long l)
Returns the least number of 7 bit-blocks that is needed to represent the long l. Returns 1 if l is 0.

Parameters:
l - long value

getCodingLength

public static final int getCodingLength(int characteristics)

EXIficient