Record Class DebugStreamProvider.StreamInfo
java.lang.Object
java.lang.Record
ghidra.app.util.bin.format.dwarf.external.DebugStreamProvider.StreamInfo
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing interface:
DebugStreamProvider
public static record DebugStreamProvider.StreamInfo(InputStream is, long contentLength)
extends Record
implements Closeable
-
Constructor Summary
ConstructorsConstructorDescriptionStreamInfo(InputStream is, long contentLength) Creates an instance of aStreamInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longReturns the value of thecontentLengthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.is()Returns the value of theisrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StreamInfo
Creates an instance of aStreamInforecord class.- Parameters:
is- the value for theisrecord componentcontentLength- the value for thecontentLengthrecord component
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
is
Returns the value of theisrecord component.- Returns:
- the value of the
isrecord component
-
contentLength
public long contentLength()Returns the value of thecontentLengthrecord component.- Returns:
- the value of the
contentLengthrecord component
-