org.nuiton.math.matrix
Class DimensionHelper

java.lang.Object
  extended by org.nuiton.math.matrix.DimensionHelper

public class DimensionHelper
extends Object

Classe permettant de diminuer au maximum l'allocation de tableau de int pour les dimensions. Cette classe n'est pas multithread, il faut créer une instance par thread. Il faut bien réfléchir lorsque l'on souhaite utiliser cette classe, par exemple il ne faut pas l'utiliser dans une méthode qui appelle une autre methode réutilisant le meme objet, car il sera alors modifier alors qu'il ne le faut pas pour la premiere methode appelée. Created: 29 oct. 2004

Version:
$Revision: 323 $ Mise a jour: $Date: 2011-01-22 10:32:20 +0100 (sam., 22 janv. 2011) $ par : $Author: tchemit $
Author:
Benjamin Poussin

Field Summary
protected  int[] d1
           
protected  int[] d2
           
protected  int[] d3
           
protected  int[] d4
           
protected  Object[] o1
           
protected  Object[] o2
           
protected  Object[] o3
           
protected  Object[] o4
           
 
Constructor Summary
DimensionHelper()
           
 
Method Summary
 int[] get(int x)
           
 int[] get(int x, int y)
           
 int[] get(int x, int y, int z)
           
 int[] get(int x, int y, int z, int t)
           
 Object[] get(Object x)
           
 Object[] get(Object x, Object y)
           
 Object[] get(Object x, Object y, Object z)
           
 Object[] get(Object x, Object y, Object z, Object t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

d1

protected int[] d1

d2

protected int[] d2

d3

protected int[] d3

d4

protected int[] d4

o1

protected Object[] o1

o2

protected Object[] o2

o3

protected Object[] o3

o4

protected Object[] o4
Constructor Detail

DimensionHelper

public DimensionHelper()
Method Detail

get

public int[] get(int x)

get

public int[] get(int x,
                 int y)

get

public int[] get(int x,
                 int y,
                 int z)

get

public int[] get(int x,
                 int y,
                 int z,
                 int t)

get

public Object[] get(Object x)

get

public Object[] get(Object x,
                    Object y)

get

public Object[] get(Object x,
                    Object y,
                    Object z)

get

public Object[] get(Object x,
                    Object y,
                    Object z,
                    Object t)


Copyright © 2004-2011 CodeLutin. All Rights Reserved.