Record Class IntermediateResponse
java.lang.Object
java.lang.Record
org.forgerock.opendj.ldap.messages.IntermediateResponse
- Record Components:
oid- the numeric OID associated with this intermediate response, ornullif there is no value.value- the value associated with this intermediate response, ornullif there is no OID. Its format is defined by the specification of this intermediate response.controls- theListcontaining the controls.
- All Implemented Interfaces:
ProtocolOp, Response
-
Constructor Summary
ConstructorsConstructorDescriptionIntermediateResponse(String oid, ByteString value, List<Control> controls) Creates a newIntermediateResponse. -
Method Summary
Modifier and TypeMethodDescriptioncontrols()Returns the value of thecontrolsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhasValue()Returnstrueif this intermediate response has a value.oid()Returns the value of theoidrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.Methods inherited from interface ProtocolOp
addControl, addControls, containsControl, getControl, getControl, removeControls
-
Constructor Details
-
IntermediateResponse
Creates a newIntermediateResponse.
-
-
Method Details
-
hasValue
public boolean hasValue()Returnstrueif this intermediate response has a value. In some circumstances it may be useful to determine if an intermediate response has a value, without actually calculating the value and incurring any performance costs.- Returns:
trueif this intermediate response has a value, orfalseif there is no value.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
oid
-
value
-
controls
-