Skip to main content
Dictionary
Store
Blog
World
Help
Advertise
Chat
System Status
Information Collection Notice
Trademark Concerns
reCAPTCHA Privacy
Terms of Service
reCAPTCHA Terms
Privacy Policy
Accessibility
Report a Bug
Data Request
Contact Us
Security
DMCA
© 1999–2026 Urban Dictionary ®
Mugs
Tees
Hoodies
Pro Customization
Create unique products with your own words and definitions
Preview
Personalize Your Design
Your Word
Your Definition
A Java Interface signifying the client that it can compare two objects which implement this. Essentially, it forces the existence of the compareTo(T otherObj) method -- depicted below. This tells a user it can use this method to compare these two objects. Typically this comparable also allows the proper implementation of an equals(Object other) method, as this would be any case in which compareTo(T otherObj) would return a 0.
Text fits
Save
Cancel