ResourceRequest.ResourceRequestComparator (Apache Hadoop Main 3.5.0 API)
Description: declaration: package: org.apache.hadoop.yarn.api.records, class: ResourceRequest, class: ResourceRequestComparator

Package org.apache.hadoop.yarn.api.records

# Class ResourceRequest.ResourceRequestComparator

java.lang.Object
org.apache.hadoop.yarn.api.records.ResourceRequest.ResourceRequestComparator

All Implemented Interfaces:
  `Serializable`, `Comparator<ResourceRequest>`

Enclosing class:
  ResourceRequest

@Public @Stable public static class ResourceRequest.ResourceRequestComparator extends Object implements Comparator<ResourceRequest>, Serializable

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ResourceRequestComparator()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `compare(ResourceRequest r1, ResourceRequest r2)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface java.util.Comparator

  `equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong`

- ## Constructor Details

  - ### ResourceRequestComparator

    public ResourceRequestComparator()

- ## Method Details

  - ### compare

    public int compare(ResourceRequest r1, ResourceRequest r2)
    Specified by:
      `compare` in interface `Comparator<ResourceRequest>`