Interface Transceivable<T extends Transceivable<T>>

Type Parameters:
T - The type of the transceivable object
All Superinterfaces:
Transmittable<T>
All Known Subinterfaces:
ConfigOption<T>
All Known Implementing Classes:
BooleanConfigOption, Color, Colour, FloatConfigOption, IntConfigOption, LocalStorage, ObjectConfigOption, SessionStorage, Storage, StringConfigOption

public interface Transceivable<T extends Transceivable<T>> extends Transmittable<T>
Represents an object that can both transmit and receive data.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    receive(T source)
    Transmits data from the source object to this object.
     
    void
    transmit(T target)
    Transmits this object's data to a given target object.
  • Method Details

    • receive

      default void receive(T source)
      Transmits data from the source object to this object.

      Equivalent of source.transmit(this).

      Parameters:
      source - The object from which data will be received
    • transmit

      void transmit(T target)
      Description copied from interface: Transmittable
      Transmits this object's data to a given target object.
      Specified by:
      transmit in interface Transmittable<T extends Transceivable<T>>
      Parameters:
      target - The target object to transmit data to
    • self

      @Contract("-> this") T self()