public class GeneralSubtrees
extends java.lang.Object
implements java.lang.Cloneable, com.tencent.kona.sun.security.util.DerEncoder
The ASN.1 for this is
GeneralSubtrees ::= SEQUENCE SIZE (1..MAX) OF GeneralSubtree
| Constructor and Description |
|---|
GeneralSubtrees()
The default constructor for the class.
|
GeneralSubtrees(com.tencent.kona.sun.security.util.DerValue val)
Create the object from the passed DER encoded form.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(GeneralSubtree tree) |
java.lang.Object |
clone() |
boolean |
contains(GeneralSubtree tree) |
void |
encode(com.tencent.kona.sun.security.util.DerOutputStream out)
Encode the GeneralSubtrees.
|
boolean |
equals(java.lang.Object obj)
Compare two general subtrees by comparing the subtrees
of each.
|
GeneralSubtree |
get(int index) |
int |
hashCode() |
GeneralSubtrees |
intersect(GeneralSubtrees other)
intersect this GeneralSubtrees with other.
|
java.util.Iterator<GeneralSubtree> |
iterator() |
void |
reduce(GeneralSubtrees excluded)
reduce this GeneralSubtrees by contents of another.
|
void |
remove(int index) |
int |
size() |
java.lang.String |
toString()
Return a printable string of the GeneralSubtree.
|
java.util.List<GeneralSubtree> |
trees() |
void |
union(GeneralSubtrees other)
construct union of this GeneralSubtrees with other.
|
public GeneralSubtrees()
public GeneralSubtrees(com.tencent.kona.sun.security.util.DerValue val)
throws java.io.IOException
val - the DER encoded form of the same.java.io.IOExceptionpublic GeneralSubtree get(int index)
public void remove(int index)
public void add(GeneralSubtree tree)
public boolean contains(GeneralSubtree tree)
public int size()
public java.util.Iterator<GeneralSubtree> iterator()
public java.util.List<GeneralSubtree> trees()
public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void encode(com.tencent.kona.sun.security.util.DerOutputStream out)
encode in interface com.tencent.kona.sun.security.util.DerEncoderout - the DerOutputStream to encode this object to.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - GeneralSubtrees to compare to thispublic int hashCode()
hashCode in class java.lang.Objectpublic GeneralSubtrees intersect(GeneralSubtrees other)
other - GeneralSubtrees to be intersected with thispublic void union(GeneralSubtrees other)
other - GeneralSubtrees to be united with thispublic void reduce(GeneralSubtrees excluded)
excluded - GeneralSubtrees