Void class abstract base

Abstract base class representing a marker or placeholder type in the Jetleaf type system.

The Void base class is intended to serve as a generic type parameter or sentinel type where no actual value is expected or needed. It is often used in APIs or frameworks that require a Class<T> reference but do not need to store a concrete instance.

Purpose

  • Provide a first-class type representation for "no-value" or placeholder scenarios.
  • Enable generic programming patterns where a type parameter is required but no data exists.
  • Serve as a foundation for Jetleaf internal type-system constructs.

Features

  • Abstract base: Cannot be instantiated directly.

Example Usage

final voidClass = Void.getClass();
// voidClass can now be used as a type reference in generic APIs

This allows APIs expecting a type to accept Void as a valid type argument without requiring a concrete instance.

Constructors

Void()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

getQualifiedName() → String
Returns the fully-qualified Jetleaf type identifier for the Void marker class.
getUri() → Uri
Returns the canonical Uri pointing to the Jetleaf library that declares Void.

Constants

KEYWORD → const String
Internal keyword representing the Jetleaf void marker type.