org.lsmp.djep.groupJep.values
Class Permutation

java.lang.Object
  extended by java.lang.Number
      extended by org.lsmp.djep.groupJep.values.Permutation
All Implemented Interfaces:
Serializable

public class Permutation
extends Number

Author:
Rich Morris Created on 15-Mar-2004
See Also:
Serialized Form

Field Summary
protected  GroupI group
           
protected  int len
           
protected  Integer[] perm
           
 
Constructor Summary
Permutation(GroupI group, Integer[] perm)
           
 
Method Summary
 Permutation add(Permutation p1)
           
 double doubleValue()
          Just returns 0.
 boolean equals(Permutation p1)
           
 float floatValue()
           
 Permutation getInverse()
           
 int intValue()
           
 long longValue()
           
 Permutation sub(Permutation p1)
           
 String toString()
           
 Permutation valueOf(Integer[] p)
           
 Permutation valueOf(Number[] p)
           
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

group

protected GroupI group

perm

protected Integer[] perm

len

protected int len
Constructor Detail

Permutation

public Permutation(GroupI group,
                   Integer[] perm)
Method Detail

add

public Permutation add(Permutation p1)

getInverse

public Permutation getInverse()

sub

public Permutation sub(Permutation p1)

equals

public boolean equals(Permutation p1)

valueOf

public Permutation valueOf(Integer[] p)

valueOf

public Permutation valueOf(Number[] p)

toString

public String toString()
Overrides:
toString in class Object

doubleValue

public double doubleValue()
Just returns 0. Minimal implematation for compatability with Number.

Specified by:
doubleValue in class Number

floatValue

public float floatValue()
Specified by:
floatValue in class Number

intValue

public int intValue()
Specified by:
intValue in class Number

longValue

public long longValue()
Specified by:
longValue in class Number


Copyright © 2014. All rights reserved.