Interface Priority

All Superinterfaces:
Comparable<Priority>

@Experimental public interface Priority extends Comparable<Priority>
Priorities are used for things like ordering syntax and loading structures in a specific order.
  • Method Details

    • base

      @Contract("-> new") static Priority base()
      Returns:
      A base priority for other priorities to build relationships off of.
    • before

      @Contract("_ -> new") static Priority before(Priority priority)
      Constructs a new priority that is before priority. Note that this method will not make any changes to the after() of priority.
      Parameters:
      priority - The priority that will be after the returned priority.
      Returns:
      A priority that is before priority.
    • after

      @Contract("_ -> new") static Priority after(Priority priority)
      Constructs a new priority that is after priority. Note that this method will not make any changes to the before() of priority.
      Parameters:
      priority - The priority that will be before the returned priority.
      Returns:
      A priority that is after priority.
    • after

      @Unmodifiable Collection<Priority> after()
      Returns:
      A collection of all priorities this priority is known to be after.
    • before

      @Unmodifiable Collection<Priority> before()
      Returns:
      A collection of all priorities this priority is known to be before.