Stay organized with collections Save and categorize content based on your preferences.
A generic container for various pure value types. Each Value is for a specific property, retrieved by get(int, Value)
. Each Value must be retrieved as the correct type, which are documented in Properties.PropertyType
.
()
Creates a new, unpopulated, value.
Public Methods long asFlags()
Converts this value into flags.
float asFloat()
Converts this value into a float.
int asInt()
Converts this value into an int.
void asMat4f(float[] outTransform)
Converts this value into a mat4 (represented by a float[16]).
void close()
Destroys the value.
long getFlags()
Returns the value's flags; always 0 for now.
Inherited Methods From class java.lang.Object boolean final Class<?>getClass()
inthashCode()
final voidnotify()
final voidnotifyAll()
StringtoString()
final voidwait(long arg0, int arg1)
final voidwait(long arg0)
final voidwait()
From interface java.lang.AutoCloseable Public Constructors public Value ()Creates a new, unpopulated, value. This event may be reused for multiple calls to get(int, Value)
. It's recommended to have one Value object for the lifetime of the app to reduce allocations.
Converts this value into flags.
public float asFloat ()Converts this value into a float.
public int asInt ()Converts this value into an int.
public void asMat4f (float[] outTransform)Converts this value into a mat4 (represented by a float[16]).
Parameters outTransform the float[16] to write the result. Must not be null. public void close ()Destroys the value. Must be called when done with the value.
public long getFlags ()Returns the value's flags; always 0 for now. Note that this is different from asFlags()
. This method returns the flags for the Value and is valid for any Value type; asFlags()
returns the flags for properties such as TRACKING_STATUS
.
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["`Value` is a generic container for different pure value types, used to store property values retrieved using `Properties.get()`."],["Each `Value` object corresponds to a specific property and must be accessed using the correct type, as defined in `Properties.PropertyType`."],["`Value` objects can be converted into various data types such as `int`, `float`, `long`, and `mat4f` using corresponding methods like `asInt()`, `asFloat()`, `asFlags()`, and `asMat4f()`."],["It's recommended to reuse a single `Value` object throughout the app's lifecycle to minimize allocations, and it's crucial to call `close()` to destroy the value when finished."],["The `getFlags()` method returns the flags for the `Value` itself (currently always 0), while `asFlags()` retrieves property-specific flags for types like `TRACKING_STATUS`."]]],["The `Value` class is a container for various value types, specific to a property. It is retrieved using `get(int, Value)`. A new, unpopulated `Value` is created with `Value()`. It can then be converted using `asFlags()`, `asFloat()`, `asInt()`, or `asMat4f(float[])`. `getFlags()` retrieves the Value's flags. `close()` must be called to destroy the Value when finished. Incorrect type conversion attempts throw `IllegalStateException`.\n"]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4