public class ETypeInfo extends Object implements org.apache.directory.api.asn1.Asn1Object
ETYPE-INFO ::= SEQUENCE OF <ETYPE-INFO-ENTRY>
Constructor and Description |
---|
ETypeInfo()
Creates a new instance of ETypeInfo.
|
ETypeInfo(ETypeInfoEntry[] etypeInfoEntries)
Creates a new instance of ETypeInfo.
|
Modifier and Type | Method and Description |
---|---|
void |
addETypeInfoEntry(ETypeInfoEntry etypeInfoEntry)
Adds an
ETypeInfoEntry to the list |
int |
computeLength()
Compute the ETypeInfo length
|
boolean |
contains(ETypeInfoEntry etypeInfoEntry)
Returns true if this
ETypeInfoEntry contains a specified ETypeInfoEntry . |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the ETypeInfo message to a PDU.
|
boolean |
equals(ETypeInfo that)
Returns true if two
ETypeInfo are equal. |
ETypeInfoEntry[] |
getETypeInfoEntries()
Returns the contained
ETypeInfoEntry s as an array. |
int |
hashCode() |
String |
toString() |
public ETypeInfo()
public ETypeInfo(ETypeInfoEntry[] etypeInfoEntries)
etypeInfoEntries
- The associated etypeInfoEntriespublic void addETypeInfoEntry(ETypeInfoEntry etypeInfoEntry)
ETypeInfoEntry
to the listetypeInfoEntry
- The ETypeInfoEntry to addpublic boolean contains(ETypeInfoEntry etypeInfoEntry)
ETypeInfoEntry
contains a specified ETypeInfoEntry
.etypeInfoEntry
- The etypeInfoEntry we are looking for in the existing listETypeInfoEntry
contains a specified ETypeInfoEntry
.public ETypeInfoEntry[] getETypeInfoEntries()
ETypeInfoEntry
s as an array.ETypeInfoEntry
s.public int computeLength()
ETypeInfo : 0x30 L1 ETypeInfo sequence of ETypeInfoEntry | +--> 0x30 L2[1] ETypeInfoEntry[1] | +--> 0x30 L2[2] ETypeInfoEntry[2] | ... | +--> 0x30 L2[n] ETypeInfoEntry[n] where L1 = sum( L2[1], l2[2], ..., L2[n] )
computeLength
in interface org.apache.directory.api.asn1.Asn1Object
public ByteBuffer encode(ByteBuffer buffer) throws org.apache.directory.api.asn1.EncoderException
ETypeInfo : 0x30 LL 0x30 LL ETypeInfoEntry[1] 0x30 LL ETypeInfoEntry[1] ... 0x30 LL ETypeInfoEntry[1]
encode
in interface org.apache.directory.api.asn1.Asn1Object
buffer
- The buffer where to put the PDU. It should have been allocated
before, with the right size.org.apache.directory.api.asn1.EncoderException
public String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.