Package Torello.Browser
Class Memory.Module
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.Memory.Module
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Memory
public static class Memory.Module extends BaseType implements java.io.Serializable
Executable module information- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/Memory.java
- Open New Browser-Tab: Torello/Browser/Memory.java
File Size: 3,436 Bytes Line Count: 93 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
For Object Serialization.Type Properties Modifier and Type Field String
baseAddress
Base address where the module is loaded into memory.String
name
Name of the module.Number
size
Size of the module in bytes.String
uuid
UUID of the module.
-
Constructor Summary
Constructors Constructor Description Module(String name, String uuid, String baseAddress, Number size)
ConstructorModule(JsonObject jo)
JSON Object Constructor
-
Method Summary
Generate Array that Indicates which Parameter are Optional Modifier and Type Method boolean[]
optionals()
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.Methods: class java.lang.Object Modifier and Type Method boolean
equals(Object other)
Checks whether'this'
equals an input Java-Object
int
hashCode()
Generates a Hash-Code for'this'
instance
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
For Object Serialization. java.io.Serializable- See Also:
- Constant Field Values
-
name
public final java.lang.String name
Name of the module.
-
uuid
public final java.lang.String uuid
UUID of the module.
-
baseAddress
public final java.lang.String baseAddress
Base address where the module is loaded into memory. Encoded as a decimal or hexadecimal (0x prefixed) string.
-
size
public final java.lang.Number size
Size of the module in bytes.
-
-
Constructor Detail
-
Module
public Module(java.lang.String name, java.lang.String uuid, java.lang.String baseAddress, java.lang.Number size)
Constructor- Parameters:
name
- Name of the module.uuid
- UUID of the module.baseAddress
- Base address where the module is loaded into memory. Encoded as a decimal or hexadecimal (0x prefixed) string.size
- Size of the module in bytes.
-
Module
public Module(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'Module'
.
-
-
Method Detail
-
optionals
public boolean[] optionals()
Description copied from class:BaseType
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding aJsonObject
to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array positionTRUE
.
NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...
-
equals
public boolean equals(java.lang.Object other)
Checks whether'this'
equals an input Java-Object
- Overrides:
equals
in classjava.lang.Object
- Code:
- Exact Method Body:
if (other == null) return false; if (other.getClass() != this.getClass()) return false; Module o = (Module) other; return Objects.equals(this.name, o.name) && Objects.equals(this.uuid, o.uuid) && Objects.equals(this.baseAddress, o.baseAddress) && Objects.equals(this.size, o.size);
-
hashCode
public int hashCode()
Generates a Hash-Code for'this'
instance- Overrides:
hashCode
in classjava.lang.Object
- Code:
- Exact Method Body:
return Objects.hashCode(this.name) + Objects.hashCode(this.uuid) + Objects.hashCode(this.baseAddress) + Objects.hashCode(this.size);
-
-