ZTauElement.java revision e6bf3e8dfa2804891a82075cb469b736321b4827
1package org.bouncycastle.math.ec; 2 3import java.math.BigInteger; 4 5/** 6 * Class representing an element of <code><b>Z</b>[τ]</code>. Let 7 * <code>λ</code> be an element of <code><b>Z</b>[τ]</code>. Then 8 * <code>λ</code> is given as <code>λ = u + vτ</code>. The 9 * components <code>u</code> and <code>v</code> may be used directly, there 10 * are no accessor methods. 11 * Immutable class. 12 */ 13class ZTauElement 14{ 15 /** 16 * The "real" part of <code>λ</code>. 17 */ 18 public final BigInteger u; 19 20 /** 21 * The "<code>τ</code>-adic" part of <code>λ</code>. 22 */ 23 public final BigInteger v; 24 25 /** 26 * Constructor for an element <code>λ</code> of 27 * <code><b>Z</b>[τ]</code>. 28 * @param u The "real" part of <code>λ</code>. 29 * @param v The "<code>τ</code>-adic" part of 30 * <code>λ</code>. 31 */ 32 public ZTauElement(BigInteger u, BigInteger v) 33 { 34 this.u = u; 35 this.v = v; 36 } 37} 38