Get the least and greatest element in this TreeSet

ReturnMethodSummary
Eceiling(E e)Returns the least element in this set greater than or equal to the given element, or null if there is no such element.
Efloor(E e)Returns the greatest element in this set less than or equal to the given element, or null if there is no such element.
Ehigher(E e)Returns the least element in this set strictly greater than the given element, or null if there is no such element.
Elower(E e)Returns the greatest element in this set strictly less than the given element, or null if there is no such element.
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.