Interface Stateless<T>

Type Parameters:
T - component type
All Superinterfaces:
Supplier<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Stateless<T> extends Supplier<T>
Defines a component as stateless. It adds no methods relative to Supplier but functions as a tagging interface for components that are stateless. It also forces subclasses to provide an instance of themselves.

Copyright (c) 2024-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Returns the single stateless instance.
  • Method Details

    • get

      T get()
      Returns the single stateless instance.
      Specified by:
      get in interface Supplier<T>
      Returns:
      single stateless instance