Package Torello.Browser
Class RunTime.PrivatePropertyDescriptor
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.RunTime.PrivatePropertyDescriptor
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- RunTime
public static class RunTime.PrivatePropertyDescriptor extends BaseType implements java.io.Serializable
Object private field descriptor.
EXPERIMENTAL- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/RunTime.java
- Open New Browser-Tab: Torello/Browser/RunTime.java
File Size: 4,158 Bytes Line Count: 113 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
For Object Serialization.Type Properties Modifier and Type Field RunTime.RemoteObject
get
A function which serves as a getter for the private property, orundefined
if there is no getter (accessor descriptors only).String
name
Private property name.RunTime.RemoteObject
set
A function which serves as a setter for the private property, orundefined
if there is no setter (accessor descriptors only).RunTime.RemoteObject
value
The value associated with the private property.
-
Constructor Summary
Constructors Constructor Description PrivatePropertyDescriptor(String name, RunTime.RemoteObject value, RunTime.RemoteObject get, RunTime.RemoteObject set)
ConstructorPrivatePropertyDescriptor(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
Private property name.
-
value
public final RunTime.RemoteObject value
The value associated with the private property.
OPTIONAL
-
get
public final RunTime.RemoteObject get
A function which serves as a getter for the private property, orundefined
if there is no getter (accessor descriptors only).
OPTIONAL
-
set
public final RunTime.RemoteObject set
A function which serves as a setter for the private property, orundefined
if there is no setter (accessor descriptors only).
OPTIONAL
-
-
Constructor Detail
-
PrivatePropertyDescriptor
public PrivatePropertyDescriptor(java.lang.String name, RunTime.RemoteObject value, RunTime.RemoteObject get, RunTime.RemoteObject set)
Constructor- Parameters:
name
- Private property name.value
- The value associated with the private property.
OPTIONALget
- A function which serves as a getter for the private property, orundefined
if there is no getter (accessor descriptors only).
OPTIONALset
- A function which serves as a setter for the private property, orundefined
if there is no setter (accessor descriptors only).
OPTIONAL
-
PrivatePropertyDescriptor
public PrivatePropertyDescriptor(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'PrivatePropertyDescriptor'
.
-
-
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; PrivatePropertyDescriptor o = (PrivatePropertyDescriptor) other; return Objects.equals(this.name, o.name) && Objects.equals(this.value, o.value) && Objects.equals(this.get, o.get) && Objects.equals(this.set, o.set);
-
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) + this.value.hashCode() + this.get.hashCode() + this.set.hashCode();
-
-