Class WindowsPeOptionalHeader
java.lang.Object
security.whisper.javastix.coo.types.WindowsPeOptionalHeader
- All Implemented Interfaces:
Serializable,StixCustomProperties,WindowsPeOptionalHeaderObj,GenericValidation,SdoDefaultValidator
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class WindowsPeOptionalHeader
extends Object
implements WindowsPeOptionalHeaderObj
The Windows PE Optional Header type represents the properties of the PE
optional header.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeWindowsPeOptionalHeader. -
Field Summary
Fields inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
VALIDATOR -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forWindowsPeOptionalHeader.static WindowsPeOptionalHeadercopyOf(WindowsPeOptionalHeaderObj instance) Creates an immutable copy of aWindowsPeOptionalHeaderObjvalue.booleanThis instance is equal to all instances ofWindowsPeOptionalHeaderthat have equal attribute values.Custom Properties for STIX Objects.inthashCode()Computes a hash code from attributes:magicHex,majorLinkerVersion,minorLinkerVersion,sizeOfCode,sizeOfInitializedData,sizeOfUninitializedData,addressOfEntryPoint,baseOfCode,baseOfData,imageBase,sectionAlignment,fileAlignment,majorOsVersion,minorOsVersion,majorImageVersion,minorImageVersion,majorSubsystemVersion,minorSubsystemVersion,win32VersionValueHex,sizeOfImage,sizeOfHeaders,checksumHex,subsystemHex,dllCharacteristicsHex,sizeOfStackReserve,sizeOfStackCommit,sizeOfHeapReserve,sizeOfHeapCommit,loaderFlagsHex,numberOfRvaAndSizes,hashes,customProperties.toString()Prints the immutable valueWindowsPeOptionalHeaderwith attribute values.final WindowsPeOptionalHeaderwithAddressOfEntryPoint(long value) Copy the current immutable object by setting a present value for the optionaladdressOfEntryPointattribute.final WindowsPeOptionalHeaderwithAddressOfEntryPoint(Optional<Long> optional) Copy the current immutable object by setting an optional value for theaddressOfEntryPointattribute.final WindowsPeOptionalHeaderwithBaseOfCode(long value) Copy the current immutable object by setting a present value for the optionalbaseOfCodeattribute.final WindowsPeOptionalHeaderwithBaseOfCode(Optional<Long> optional) Copy the current immutable object by setting an optional value for thebaseOfCodeattribute.final WindowsPeOptionalHeaderwithBaseOfData(long value) Copy the current immutable object by setting a present value for the optionalbaseOfDataattribute.final WindowsPeOptionalHeaderwithBaseOfData(Optional<Long> optional) Copy the current immutable object by setting an optional value for thebaseOfDataattribute.final WindowsPeOptionalHeaderwithChecksumHex(String value) Copy the current immutable object by setting a present value for the optionalchecksumHexattribute.final WindowsPeOptionalHeaderwithChecksumHex(Optional<String> optional) Copy the current immutable object by setting an optional value for thechecksumHexattribute.final WindowsPeOptionalHeaderwithCustomProperties(Map<String, ? extends Object> entries) Copy the current immutable object by replacing thecustomPropertiesmap with the specified map.final WindowsPeOptionalHeaderwithDllCharacteristicsHex(String value) Copy the current immutable object by setting a present value for the optionaldllCharacteristicsHexattribute.final WindowsPeOptionalHeaderwithDllCharacteristicsHex(Optional<String> optional) Copy the current immutable object by setting an optional value for thedllCharacteristicsHexattribute.final WindowsPeOptionalHeaderwithFileAlignment(long value) Copy the current immutable object by setting a present value for the optionalfileAlignmentattribute.final WindowsPeOptionalHeaderwithFileAlignment(Optional<Long> optional) Copy the current immutable object by setting an optional value for thefileAlignmentattribute.final WindowsPeOptionalHeaderwithHashes(Map<String, ? extends String> entries) Copy the current immutable object by replacing thehashesmap with the specified map.final WindowsPeOptionalHeaderwithImageBase(long value) Copy the current immutable object by setting a present value for the optionalimageBaseattribute.final WindowsPeOptionalHeaderwithImageBase(Optional<Long> optional) Copy the current immutable object by setting an optional value for theimageBaseattribute.final WindowsPeOptionalHeaderwithLoaderFlagsHex(String value) Copy the current immutable object by setting a present value for the optionalloaderFlagsHexattribute.final WindowsPeOptionalHeaderwithLoaderFlagsHex(Optional<String> optional) Copy the current immutable object by setting an optional value for theloaderFlagsHexattribute.final WindowsPeOptionalHeaderwithMagicHex(String value) Copy the current immutable object by setting a present value for the optionalmagicHexattribute.final WindowsPeOptionalHeaderwithMagicHex(Optional<String> optional) Copy the current immutable object by setting an optional value for themagicHexattribute.final WindowsPeOptionalHeaderwithMajorImageVersion(long value) Copy the current immutable object by setting a present value for the optionalmajorImageVersionattribute.final WindowsPeOptionalHeaderwithMajorImageVersion(Optional<Long> optional) Copy the current immutable object by setting an optional value for themajorImageVersionattribute.final WindowsPeOptionalHeaderwithMajorLinkerVersion(long value) Copy the current immutable object by setting a present value for the optionalmajorLinkerVersionattribute.final WindowsPeOptionalHeaderwithMajorLinkerVersion(Optional<Long> optional) Copy the current immutable object by setting an optional value for themajorLinkerVersionattribute.final WindowsPeOptionalHeaderwithMajorOsVersion(long value) Copy the current immutable object by setting a present value for the optionalmajorOsVersionattribute.final WindowsPeOptionalHeaderwithMajorOsVersion(Optional<Long> optional) Copy the current immutable object by setting an optional value for themajorOsVersionattribute.final WindowsPeOptionalHeaderwithMajorSubsystemVersion(long value) Copy the current immutable object by setting a present value for the optionalmajorSubsystemVersionattribute.final WindowsPeOptionalHeaderwithMajorSubsystemVersion(Optional<Long> optional) Copy the current immutable object by setting an optional value for themajorSubsystemVersionattribute.final WindowsPeOptionalHeaderwithMinorImageVersion(long value) Copy the current immutable object by setting a present value for the optionalminorImageVersionattribute.final WindowsPeOptionalHeaderwithMinorImageVersion(Optional<Long> optional) Copy the current immutable object by setting an optional value for theminorImageVersionattribute.final WindowsPeOptionalHeaderwithMinorLinkerVersion(long value) Copy the current immutable object by setting a present value for the optionalminorLinkerVersionattribute.final WindowsPeOptionalHeaderwithMinorLinkerVersion(Optional<Long> optional) Copy the current immutable object by setting an optional value for theminorLinkerVersionattribute.final WindowsPeOptionalHeaderwithMinorOsVersion(long value) Copy the current immutable object by setting a present value for the optionalminorOsVersionattribute.final WindowsPeOptionalHeaderwithMinorOsVersion(Optional<Long> optional) Copy the current immutable object by setting an optional value for theminorOsVersionattribute.final WindowsPeOptionalHeaderwithMinorSubsystemVersion(long value) Copy the current immutable object by setting a present value for the optionalminorSubsystemVersionattribute.final WindowsPeOptionalHeaderwithMinorSubsystemVersion(Optional<Long> optional) Copy the current immutable object by setting an optional value for theminorSubsystemVersionattribute.final WindowsPeOptionalHeaderwithNumberOfRvaAndSizes(long value) Copy the current immutable object by setting a present value for the optionalnumberOfRvaAndSizesattribute.final WindowsPeOptionalHeaderwithNumberOfRvaAndSizes(Optional<Long> optional) Copy the current immutable object by setting an optional value for thenumberOfRvaAndSizesattribute.final WindowsPeOptionalHeaderwithSectionAlignment(long value) Copy the current immutable object by setting a present value for the optionalsectionAlignmentattribute.final WindowsPeOptionalHeaderwithSectionAlignment(Optional<Long> optional) Copy the current immutable object by setting an optional value for thesectionAlignmentattribute.final WindowsPeOptionalHeaderwithSizeOfCode(long value) Copy the current immutable object by setting a present value for the optionalsizeOfCodeattribute.final WindowsPeOptionalHeaderwithSizeOfCode(Optional<Long> optional) Copy the current immutable object by setting an optional value for thesizeOfCodeattribute.final WindowsPeOptionalHeaderwithSizeOfHeaders(long value) Copy the current immutable object by setting a present value for the optionalsizeOfHeadersattribute.final WindowsPeOptionalHeaderwithSizeOfHeaders(Optional<Long> optional) Copy the current immutable object by setting an optional value for thesizeOfHeadersattribute.final WindowsPeOptionalHeaderwithSizeOfHeapCommit(long value) Copy the current immutable object by setting a present value for the optionalsizeOfHeapCommitattribute.final WindowsPeOptionalHeaderwithSizeOfHeapCommit(Optional<Long> optional) Copy the current immutable object by setting an optional value for thesizeOfHeapCommitattribute.final WindowsPeOptionalHeaderwithSizeOfHeapReserve(long value) Copy the current immutable object by setting a present value for the optionalsizeOfHeapReserveattribute.final WindowsPeOptionalHeaderwithSizeOfHeapReserve(Optional<Long> optional) Copy the current immutable object by setting an optional value for thesizeOfHeapReserveattribute.final WindowsPeOptionalHeaderwithSizeOfImage(long value) Copy the current immutable object by setting a present value for the optionalsizeOfImageattribute.final WindowsPeOptionalHeaderwithSizeOfImage(Optional<Long> optional) Copy the current immutable object by setting an optional value for thesizeOfImageattribute.final WindowsPeOptionalHeaderwithSizeOfInitializedData(long value) Copy the current immutable object by setting a present value for the optionalsizeOfInitializedDataattribute.final WindowsPeOptionalHeaderwithSizeOfInitializedData(Optional<Long> optional) Copy the current immutable object by setting an optional value for thesizeOfInitializedDataattribute.final WindowsPeOptionalHeaderwithSizeOfStackCommit(long value) Copy the current immutable object by setting a present value for the optionalsizeOfStackCommitattribute.final WindowsPeOptionalHeaderwithSizeOfStackCommit(Optional<Long> optional) Copy the current immutable object by setting an optional value for thesizeOfStackCommitattribute.final WindowsPeOptionalHeaderwithSizeOfStackReserve(long value) Copy the current immutable object by setting a present value for the optionalsizeOfStackReserveattribute.final WindowsPeOptionalHeaderwithSizeOfStackReserve(Optional<Long> optional) Copy the current immutable object by setting an optional value for thesizeOfStackReserveattribute.final WindowsPeOptionalHeaderwithSizeOfUninitializedData(long value) Copy the current immutable object by setting a present value for the optionalsizeOfUninitializedDataattribute.final WindowsPeOptionalHeaderwithSizeOfUninitializedData(Optional<Long> optional) Copy the current immutable object by setting an optional value for thesizeOfUninitializedDataattribute.final WindowsPeOptionalHeaderwithSubsystemHex(String value) Copy the current immutable object by setting a present value for the optionalsubsystemHexattribute.final WindowsPeOptionalHeaderwithSubsystemHex(Optional<String> optional) Copy the current immutable object by setting an optional value for thesubsystemHexattribute.final WindowsPeOptionalHeaderwithWin32VersionValueHex(String value) Copy the current immutable object by setting a present value for the optionalwin32VersionValueHexattribute.final WindowsPeOptionalHeaderwithWin32VersionValueHex(Optional<String> optional) Copy the current immutable object by setting an optional value for thewin32VersionValueHexattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface security.whisper.javastix.validation.GenericValidation
validateEntityMethods inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
validate, validateOnlyId
-
Method Details
-
getMagicHex
@JsonPropertyDescription("Specifies the unsigned Optional<Integer> that indicates the type of the PE binary.") public Optional<String> getMagicHex()- Specified by:
getMagicHexin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
magicHexattribute
-
getMajorLinkerVersion
@JsonPropertyDescription("Specifies the linker major version number.") public Optional<Long> getMajorLinkerVersion()- Specified by:
getMajorLinkerVersionin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
majorLinkerVersionattribute
-
getMinorLinkerVersion
@JsonPropertyDescription("Specifies the linker minor version number.") public Optional<Long> getMinorLinkerVersion()- Specified by:
getMinorLinkerVersionin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
minorLinkerVersionattribute
-
getSizeOfCode
@JsonPropertyDescription("Specifies the size of the code (text) section. If there are multiple such sections, this refers to the sum of the sizes of each section.") public Optional<Long> getSizeOfCode()- Specified by:
getSizeOfCodein interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
sizeOfCodeattribute
-
getSizeOfInitializedData
@JsonPropertyDescription("Specifies the size of the initialized data section. If there are multiple such sections, this refers to the sum of the sizes of each section.") public Optional<Long> getSizeOfInitializedData()- Specified by:
getSizeOfInitializedDatain interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
sizeOfInitializedDataattribute
-
getSizeOfUninitializedData
@JsonPropertyDescription("Specifies the size of the uninitialized data section. If there are multiple such sections, this refers to the sum of the sizes of each section.") public Optional<Long> getSizeOfUninitializedData()- Specified by:
getSizeOfUninitializedDatain interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
sizeOfUninitializedDataattribute
-
getAddressOfEntryPoint
@JsonPropertyDescription("Specifies the address of the entry point relative to the image base when the executable is loaded into memory.") public Optional<Long> getAddressOfEntryPoint()- Specified by:
getAddressOfEntryPointin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
addressOfEntryPointattribute
-
getBaseOfCode
@JsonPropertyDescription("Specifies the address that is relative to the image base of the beginning-of-code section when it is loaded into memory.") public Optional<Long> getBaseOfCode()- Specified by:
getBaseOfCodein interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
baseOfCodeattribute
-
getBaseOfData
@JsonPropertyDescription("Specifies the address that is relative to the image base of the beginning-of-data section when it is loaded into memory.") public Optional<Long> getBaseOfData()- Specified by:
getBaseOfDatain interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
baseOfDataattribute
-
getImageBase
@JsonPropertyDescription("Specifies the preferred address of the first byte of the image when loaded into memory.") public Optional<Long> getImageBase()- Specified by:
getImageBasein interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
imageBaseattribute
-
getSectionAlignment
@JsonPropertyDescription("Specifies the alignment (in bytes) of PE sections when they are loaded into memory.") public Optional<Long> getSectionAlignment()- Specified by:
getSectionAlignmentin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
sectionAlignmentattribute
-
getFileAlignment
@JsonPropertyDescription("Specifies the factor (in bytes) that is used to align the raw data of sections in the image file.") public Optional<Long> getFileAlignment()- Specified by:
getFileAlignmentin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
fileAlignmentattribute
-
getMajorOsVersion
@JsonPropertyDescription("Specifies the major version number of the required operating system.") public Optional<Long> getMajorOsVersion()- Specified by:
getMajorOsVersionin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
majorOsVersionattribute
-
getMinorOsVersion
@JsonPropertyDescription("Specifies the minor version number of the required operating system.") public Optional<Long> getMinorOsVersion()- Specified by:
getMinorOsVersionin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
minorOsVersionattribute
-
getMajorImageVersion
@JsonPropertyDescription("Specifies the major version number of the image.") public Optional<Long> getMajorImageVersion()- Specified by:
getMajorImageVersionin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
majorImageVersionattribute
-
getMinorImageVersion
@JsonPropertyDescription("Specifies the minor version number of the image.") public Optional<Long> getMinorImageVersion()- Specified by:
getMinorImageVersionin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
minorImageVersionattribute
-
getMajorSubsystemVersion
@JsonPropertyDescription("Specifies the major version number of the subsystem.") public Optional<Long> getMajorSubsystemVersion()- Specified by:
getMajorSubsystemVersionin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
majorSubsystemVersionattribute
-
getMinorSubsystemVersion
@JsonPropertyDescription("Specifies the minor version number of the subsystem.") public Optional<Long> getMinorSubsystemVersion()- Specified by:
getMinorSubsystemVersionin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
minorSubsystemVersionattribute
-
getWin32VersionValueHex
@JsonPropertyDescription("Specifies the reserved win32 version value.") public Optional<String> getWin32VersionValueHex()- Specified by:
getWin32VersionValueHexin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
win32VersionValueHexattribute
-
getSizeOfImage
@JsonPropertyDescription("Specifies the size, in bytes, of the image, including all headers, as the image is loaded in memory.") public Optional<Long> getSizeOfImage()- Specified by:
getSizeOfImagein interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
sizeOfImageattribute
-
getSizeOfHeaders
@JsonPropertyDescription("Specifies the combined size of the MS-DOS, PE header, and section headers, rounded up a multiple of the value specified in the file_alignment header.") public Optional<Long> getSizeOfHeaders()- Specified by:
getSizeOfHeadersin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
sizeOfHeadersattribute
-
getChecksumHex
@JsonPropertyDescription("Specifies the checksum of the PE binary.") public Optional<String> getChecksumHex()- Specified by:
getChecksumHexin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
checksumHexattribute
-
getSubsystemHex
@JsonPropertyDescription("Specifies the subsystem (e.g., GUI, device driver, etc.) that is required to run this image.") public Optional<String> getSubsystemHex()- Specified by:
getSubsystemHexin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
subsystemHexattribute
-
getDllCharacteristicsHex
@JsonPropertyDescription("Specifies the flags that characterize the PE binary.") public Optional<String> getDllCharacteristicsHex()- Specified by:
getDllCharacteristicsHexin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
dllCharacteristicsHexattribute
-
getSizeOfStackReserve
@JsonPropertyDescription("Specifies the size of the stack to reserve") public Optional<Long> getSizeOfStackReserve()- Specified by:
getSizeOfStackReservein interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
sizeOfStackReserveattribute
-
getSizeOfStackCommit
@JsonPropertyDescription("Specifies the size of the stack to commit.") public Optional<Long> getSizeOfStackCommit()- Specified by:
getSizeOfStackCommitin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
sizeOfStackCommitattribute
-
getSizeOfHeapReserve
@JsonPropertyDescription("Specifies the size of the local heap space to reserve.") public Optional<Long> getSizeOfHeapReserve()- Specified by:
getSizeOfHeapReservein interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
sizeOfHeapReserveattribute
-
getSizeOfHeapCommit
@JsonPropertyDescription("Specifies the size of the local heap space to commit.") public Optional<Long> getSizeOfHeapCommit()- Specified by:
getSizeOfHeapCommitin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
sizeOfHeapCommitattribute
-
getLoaderFlagsHex
@JsonPropertyDescription("Specifies the reserved loader flags.") public Optional<String> getLoaderFlagsHex()- Specified by:
getLoaderFlagsHexin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
loaderFlagsHexattribute
-
getNumberOfRvaAndSizes
@JsonPropertyDescription("Specifies the number of data-directory entries in the remainder of the optional header.") public Optional<Long> getNumberOfRvaAndSizes()- Specified by:
getNumberOfRvaAndSizesin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
numberOfRvaAndSizesattribute
-
getHashes
@JsonPropertyDescription("Specifies any hashes that were computed for the optional header.") public com.google.common.collect.ImmutableMap<String,String> getHashes()- Specified by:
getHashesin interfaceWindowsPeOptionalHeaderObj- Returns:
- The value of the
hashesattribute
-
getCustomProperties
Custom Properties for STIX Objects. Any object that supports custom properties will have a validation of the custom property prefix (typically "x_"). If the additional property in the JSON does not meet the StartsWith condition, then the JSON will be rejected.- Specified by:
getCustomPropertiesin interfaceStixCustomProperties- Returns:
- Map of custom properties
Map<String, Object>
-
withMagicHex
Copy the current immutable object by setting a present value for the optionalmagicHexattribute.- Parameters:
value- The value for magicHex- Returns:
- A modified copy of
thisobject
-
withMagicHex
Copy the current immutable object by setting an optional value for themagicHexattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for magicHex- Returns:
- A modified copy of
thisobject
-
withMajorLinkerVersion
Copy the current immutable object by setting a present value for the optionalmajorLinkerVersionattribute.- Parameters:
value- The value for majorLinkerVersion- Returns:
- A modified copy of
thisobject
-
withMajorLinkerVersion
Copy the current immutable object by setting an optional value for themajorLinkerVersionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for majorLinkerVersion- Returns:
- A modified copy of
thisobject
-
withMinorLinkerVersion
Copy the current immutable object by setting a present value for the optionalminorLinkerVersionattribute.- Parameters:
value- The value for minorLinkerVersion- Returns:
- A modified copy of
thisobject
-
withMinorLinkerVersion
Copy the current immutable object by setting an optional value for theminorLinkerVersionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for minorLinkerVersion- Returns:
- A modified copy of
thisobject
-
withSizeOfCode
Copy the current immutable object by setting a present value for the optionalsizeOfCodeattribute.- Parameters:
value- The value for sizeOfCode- Returns:
- A modified copy of
thisobject
-
withSizeOfCode
Copy the current immutable object by setting an optional value for thesizeOfCodeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for sizeOfCode- Returns:
- A modified copy of
thisobject
-
withSizeOfInitializedData
Copy the current immutable object by setting a present value for the optionalsizeOfInitializedDataattribute.- Parameters:
value- The value for sizeOfInitializedData- Returns:
- A modified copy of
thisobject
-
withSizeOfInitializedData
Copy the current immutable object by setting an optional value for thesizeOfInitializedDataattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for sizeOfInitializedData- Returns:
- A modified copy of
thisobject
-
withSizeOfUninitializedData
Copy the current immutable object by setting a present value for the optionalsizeOfUninitializedDataattribute.- Parameters:
value- The value for sizeOfUninitializedData- Returns:
- A modified copy of
thisobject
-
withSizeOfUninitializedData
Copy the current immutable object by setting an optional value for thesizeOfUninitializedDataattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for sizeOfUninitializedData- Returns:
- A modified copy of
thisobject
-
withAddressOfEntryPoint
Copy the current immutable object by setting a present value for the optionaladdressOfEntryPointattribute.- Parameters:
value- The value for addressOfEntryPoint- Returns:
- A modified copy of
thisobject
-
withAddressOfEntryPoint
Copy the current immutable object by setting an optional value for theaddressOfEntryPointattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for addressOfEntryPoint- Returns:
- A modified copy of
thisobject
-
withBaseOfCode
Copy the current immutable object by setting a present value for the optionalbaseOfCodeattribute.- Parameters:
value- The value for baseOfCode- Returns:
- A modified copy of
thisobject
-
withBaseOfCode
Copy the current immutable object by setting an optional value for thebaseOfCodeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for baseOfCode- Returns:
- A modified copy of
thisobject
-
withBaseOfData
Copy the current immutable object by setting a present value for the optionalbaseOfDataattribute.- Parameters:
value- The value for baseOfData- Returns:
- A modified copy of
thisobject
-
withBaseOfData
Copy the current immutable object by setting an optional value for thebaseOfDataattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for baseOfData- Returns:
- A modified copy of
thisobject
-
withImageBase
Copy the current immutable object by setting a present value for the optionalimageBaseattribute.- Parameters:
value- The value for imageBase- Returns:
- A modified copy of
thisobject
-
withImageBase
Copy the current immutable object by setting an optional value for theimageBaseattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for imageBase- Returns:
- A modified copy of
thisobject
-
withSectionAlignment
Copy the current immutable object by setting a present value for the optionalsectionAlignmentattribute.- Parameters:
value- The value for sectionAlignment- Returns:
- A modified copy of
thisobject
-
withSectionAlignment
Copy the current immutable object by setting an optional value for thesectionAlignmentattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for sectionAlignment- Returns:
- A modified copy of
thisobject
-
withFileAlignment
Copy the current immutable object by setting a present value for the optionalfileAlignmentattribute.- Parameters:
value- The value for fileAlignment- Returns:
- A modified copy of
thisobject
-
withFileAlignment
Copy the current immutable object by setting an optional value for thefileAlignmentattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for fileAlignment- Returns:
- A modified copy of
thisobject
-
withMajorOsVersion
Copy the current immutable object by setting a present value for the optionalmajorOsVersionattribute.- Parameters:
value- The value for majorOsVersion- Returns:
- A modified copy of
thisobject
-
withMajorOsVersion
Copy the current immutable object by setting an optional value for themajorOsVersionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for majorOsVersion- Returns:
- A modified copy of
thisobject
-
withMinorOsVersion
Copy the current immutable object by setting a present value for the optionalminorOsVersionattribute.- Parameters:
value- The value for minorOsVersion- Returns:
- A modified copy of
thisobject
-
withMinorOsVersion
Copy the current immutable object by setting an optional value for theminorOsVersionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for minorOsVersion- Returns:
- A modified copy of
thisobject
-
withMajorImageVersion
Copy the current immutable object by setting a present value for the optionalmajorImageVersionattribute.- Parameters:
value- The value for majorImageVersion- Returns:
- A modified copy of
thisobject
-
withMajorImageVersion
Copy the current immutable object by setting an optional value for themajorImageVersionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for majorImageVersion- Returns:
- A modified copy of
thisobject
-
withMinorImageVersion
Copy the current immutable object by setting a present value for the optionalminorImageVersionattribute.- Parameters:
value- The value for minorImageVersion- Returns:
- A modified copy of
thisobject
-
withMinorImageVersion
Copy the current immutable object by setting an optional value for theminorImageVersionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for minorImageVersion- Returns:
- A modified copy of
thisobject
-
withMajorSubsystemVersion
Copy the current immutable object by setting a present value for the optionalmajorSubsystemVersionattribute.- Parameters:
value- The value for majorSubsystemVersion- Returns:
- A modified copy of
thisobject
-
withMajorSubsystemVersion
Copy the current immutable object by setting an optional value for themajorSubsystemVersionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for majorSubsystemVersion- Returns:
- A modified copy of
thisobject
-
withMinorSubsystemVersion
Copy the current immutable object by setting a present value for the optionalminorSubsystemVersionattribute.- Parameters:
value- The value for minorSubsystemVersion- Returns:
- A modified copy of
thisobject
-
withMinorSubsystemVersion
Copy the current immutable object by setting an optional value for theminorSubsystemVersionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for minorSubsystemVersion- Returns:
- A modified copy of
thisobject
-
withWin32VersionValueHex
Copy the current immutable object by setting a present value for the optionalwin32VersionValueHexattribute.- Parameters:
value- The value for win32VersionValueHex- Returns:
- A modified copy of
thisobject
-
withWin32VersionValueHex
Copy the current immutable object by setting an optional value for thewin32VersionValueHexattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for win32VersionValueHex- Returns:
- A modified copy of
thisobject
-
withSizeOfImage
Copy the current immutable object by setting a present value for the optionalsizeOfImageattribute.- Parameters:
value- The value for sizeOfImage- Returns:
- A modified copy of
thisobject
-
withSizeOfImage
Copy the current immutable object by setting an optional value for thesizeOfImageattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for sizeOfImage- Returns:
- A modified copy of
thisobject
-
withSizeOfHeaders
Copy the current immutable object by setting a present value for the optionalsizeOfHeadersattribute.- Parameters:
value- The value for sizeOfHeaders- Returns:
- A modified copy of
thisobject
-
withSizeOfHeaders
Copy the current immutable object by setting an optional value for thesizeOfHeadersattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for sizeOfHeaders- Returns:
- A modified copy of
thisobject
-
withChecksumHex
Copy the current immutable object by setting a present value for the optionalchecksumHexattribute.- Parameters:
value- The value for checksumHex- Returns:
- A modified copy of
thisobject
-
withChecksumHex
Copy the current immutable object by setting an optional value for thechecksumHexattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for checksumHex- Returns:
- A modified copy of
thisobject
-
withSubsystemHex
Copy the current immutable object by setting a present value for the optionalsubsystemHexattribute.- Parameters:
value- The value for subsystemHex- Returns:
- A modified copy of
thisobject
-
withSubsystemHex
Copy the current immutable object by setting an optional value for thesubsystemHexattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for subsystemHex- Returns:
- A modified copy of
thisobject
-
withDllCharacteristicsHex
Copy the current immutable object by setting a present value for the optionaldllCharacteristicsHexattribute.- Parameters:
value- The value for dllCharacteristicsHex- Returns:
- A modified copy of
thisobject
-
withDllCharacteristicsHex
Copy the current immutable object by setting an optional value for thedllCharacteristicsHexattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for dllCharacteristicsHex- Returns:
- A modified copy of
thisobject
-
withSizeOfStackReserve
Copy the current immutable object by setting a present value for the optionalsizeOfStackReserveattribute.- Parameters:
value- The value for sizeOfStackReserve- Returns:
- A modified copy of
thisobject
-
withSizeOfStackReserve
Copy the current immutable object by setting an optional value for thesizeOfStackReserveattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for sizeOfStackReserve- Returns:
- A modified copy of
thisobject
-
withSizeOfStackCommit
Copy the current immutable object by setting a present value for the optionalsizeOfStackCommitattribute.- Parameters:
value- The value for sizeOfStackCommit- Returns:
- A modified copy of
thisobject
-
withSizeOfStackCommit
Copy the current immutable object by setting an optional value for thesizeOfStackCommitattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for sizeOfStackCommit- Returns:
- A modified copy of
thisobject
-
withSizeOfHeapReserve
Copy the current immutable object by setting a present value for the optionalsizeOfHeapReserveattribute.- Parameters:
value- The value for sizeOfHeapReserve- Returns:
- A modified copy of
thisobject
-
withSizeOfHeapReserve
Copy the current immutable object by setting an optional value for thesizeOfHeapReserveattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for sizeOfHeapReserve- Returns:
- A modified copy of
thisobject
-
withSizeOfHeapCommit
Copy the current immutable object by setting a present value for the optionalsizeOfHeapCommitattribute.- Parameters:
value- The value for sizeOfHeapCommit- Returns:
- A modified copy of
thisobject
-
withSizeOfHeapCommit
Copy the current immutable object by setting an optional value for thesizeOfHeapCommitattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for sizeOfHeapCommit- Returns:
- A modified copy of
thisobject
-
withLoaderFlagsHex
Copy the current immutable object by setting a present value for the optionalloaderFlagsHexattribute.- Parameters:
value- The value for loaderFlagsHex- Returns:
- A modified copy of
thisobject
-
withLoaderFlagsHex
Copy the current immutable object by setting an optional value for theloaderFlagsHexattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for loaderFlagsHex- Returns:
- A modified copy of
thisobject
-
withNumberOfRvaAndSizes
Copy the current immutable object by setting a present value for the optionalnumberOfRvaAndSizesattribute.- Parameters:
value- The value for numberOfRvaAndSizes- Returns:
- A modified copy of
thisobject
-
withNumberOfRvaAndSizes
Copy the current immutable object by setting an optional value for thenumberOfRvaAndSizesattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for numberOfRvaAndSizes- Returns:
- A modified copy of
thisobject
-
withHashes
Copy the current immutable object by replacing thehashesmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the hashes map- Returns:
- A modified copy of
thisobject
-
withCustomProperties
Copy the current immutable object by replacing thecustomPropertiesmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the customProperties map- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofWindowsPeOptionalHeaderthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:magicHex,majorLinkerVersion,minorLinkerVersion,sizeOfCode,sizeOfInitializedData,sizeOfUninitializedData,addressOfEntryPoint,baseOfCode,baseOfData,imageBase,sectionAlignment,fileAlignment,majorOsVersion,minorOsVersion,majorImageVersion,minorImageVersion,majorSubsystemVersion,minorSubsystemVersion,win32VersionValueHex,sizeOfImage,sizeOfHeaders,checksumHex,subsystemHex,dllCharacteristicsHex,sizeOfStackReserve,sizeOfStackCommit,sizeOfHeapReserve,sizeOfHeapCommit,loaderFlagsHex,numberOfRvaAndSizes,hashes,customProperties. -
toString
Prints the immutable valueWindowsPeOptionalHeaderwith attribute values. -
copyOf
Creates an immutable copy of aWindowsPeOptionalHeaderObjvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable WindowsPeOptionalHeader instance
-
builder
Creates a builder forWindowsPeOptionalHeader.- Returns:
- A new WindowsPeOptionalHeader builder
-