public class CachedInfoResponse
extends java.lang.Object
This class holds an info response array, and can produce a filtered response holding only those items asked for.
| Constructor and Description |
|---|
CachedInfoResponse(byte[] infoResponse)
Constructs a cached info response.
|
| Modifier and Type | Method and Description |
|---|---|
static CachedInfoResponse |
empty() |
boolean |
equals(java.lang.Object obj) |
byte[] |
filtered(byte[] requestItems)
Produces a response with only the items in
requestItems, allowing items to be missing. |
java.util.Optional<byte[]> |
filteredComplete(byte[] requestItems)
Produces a response with only the items in
requestItems, requiring all items to be present. |
int |
hashCode() |
byte[] |
infoResponse() |
public CachedInfoResponse(byte[] infoResponse)
infoResponse - byte array with info response; the caller of the constructor is responsible for cloning/copying the array
if neededpublic static CachedInfoResponse empty()
public byte[] filtered(byte[] requestItems)
requestItems, allowing items to be missing.
If there are no matching items, or the cached response is empty, then a byte array with only
ISCConstants.isc_info_end is returned.
requestItems - requested info itemsISCConstants.isc_info_endfilteredComplete(byte[])public java.util.Optional<byte[]> filteredComplete(byte[] requestItems)
requestItems, requiring all items to be present.
If at least one item in requestItems (excluding ISCConstants.isc_info_end) is
not found in this cached info response, empty is returned.
requestItems - requested info itemsISCConstants.isc_info_end, or empty if at least one of the requested items where not
found in the cached response, or if the cached response is emptyfiltered(byte[])public byte[] infoResponse()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2001-2025 Jaybird (Firebird JDBC) team. All rights reserved.