public class ETypeInfo2
extends java.lang.Object
implements org.apache.directory.api.asn1.Asn1Object
ETYPE-INFO2 ::= SEQUENCE SIZE (1..MAX) OF ETYPE-INFO2-ENTRY
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<ETypeInfo2Entry> |
etypeInfo2Entries
List of all ETYPE-INFO2-ENTRY stored
|
private int |
etypeInfo2Length |
private static boolean |
IS_DEBUG
Speedup for logs
|
private static org.slf4j.Logger |
LOG
The logger
|
| Constructor and Description |
|---|
ETypeInfo2()
Creates a new instance of ETypeInfo2.
|
ETypeInfo2(ETypeInfo2Entry[] etypeInfo2Entries)
Creates a new instance of ETypeInfo2.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addETypeInfo2Entry(ETypeInfo2Entry etypeInfo2Entry)
Adds an
ETypeInfo2Entry to the list |
int |
computeLength()
Compute the ETypeInfo2 length
|
boolean |
contains(ETypeInfo2Entry etypeInfo2Entry)
Returns true if this
ETypeInfo2Entry contains a specified ETypeInfo2Entry. |
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the ETypeInfo2 message to a PDU.
|
boolean |
equals(ETypeInfo2 that)
Returns true if two
ETypeInfo2 are equal. |
ETypeInfo2Entry[] |
getETypeInfo2Entries()
Returns the contained
ETypeInfo2Entrys as an array. |
int |
hashCode() |
java.lang.String |
toString() |
private static final org.slf4j.Logger LOG
private static final boolean IS_DEBUG
private java.util.List<ETypeInfo2Entry> etypeInfo2Entries
private int etypeInfo2Length
public ETypeInfo2()
public ETypeInfo2(ETypeInfo2Entry[] etypeInfo2Entries)
etypeInfo2Entries - The associated etypeInfo2Entriespublic void addETypeInfo2Entry(ETypeInfo2Entry etypeInfo2Entry)
ETypeInfo2Entry to the listetypeInfo2Entry - The ETypeInfo2Entry to addpublic boolean contains(ETypeInfo2Entry etypeInfo2Entry)
ETypeInfo2Entry contains a specified ETypeInfo2Entry.address - The etypeInfo2Entry we are looking for in the existing listETypeInfo2Entry contains a specified ETypeInfo2Entry.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(ETypeInfo2 that)
ETypeInfo2 are equal.that - The ETypeInfo2 we want to compare with the current oneETypeInfo2 are equal.public ETypeInfo2Entry[] getETypeInfo2Entries()
ETypeInfo2Entrys as an array.ETypeInfo2Entrys.public int computeLength()
ETypeInfo2 :
0x30 L1 ETypeInfo2 sequence of ETypeInfo2Entry
|
+--> 0x30 L2[1] ETypeInfo2Entry[1]
|
+--> 0x30 L2[2] ETypeInfo2Entry[2]
|
...
|
+--> 0x30 L2[n] ETypeInfo2Entry[n]
where L1 = sum( L2[1], l2[2], ..., L2[n] )
computeLength in interface org.apache.directory.api.asn1.Asn1Objectpublic java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
throws org.apache.directory.api.asn1.EncoderException
ETypeInfo2 : 0x30 LL 0x30 LL ETypeInfo2Entry[1] 0x30 LL ETypeInfo2Entry[1] ... 0x30 LL ETypeInfo2Entry[1]
encode in interface org.apache.directory.api.asn1.Asn1Objectbuffer - The buffer where to put the PDU. It should have been allocated
before, with the right size.org.apache.directory.api.asn1.EncoderExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()