Class Initializers

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class Initializers
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    Initializers tracks the progress of initialization.
    • Constructor Detail

      • Initializers

        public Initializers​(@NonNull
                            @NonNull java.util.List<Initializer> pending,
                            Status result)
      • Initializers

        public Initializers()
    • Method Detail

      • getPending

        @NonNull
        public @NonNull java.util.List<Initializer> getPending()
        Pending is a list of initializers that must execute in order before this object is visible. When the last pending initializer is removed, and no failing result is set, the initializers struct will be set to nil and the object is considered as initialized and visible to all clients.
      • getResult

        public Status getResult()
      • setPending

        public void setPending​(@NonNull
                               @NonNull java.util.List<Initializer> pending)
        Pending is a list of initializers that must execute in order before this object is visible. When the last pending initializer is removed, and no failing result is set, the initializers struct will be set to nil and the object is considered as initialized and visible to all clients.
      • setResult

        public void setResult​(Status result)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object