SHARE
TWEET

Untitled

a guest Feb 20th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. // Source code recreated from a .class file by IntelliJ IDEA
  3. // (powered by Fernflower decompiler)
  4. //
  5.  
  6. package me.ragan262.quester.qevents;
  7.  
  8. import me.ragan262.quester.utils.Util;
  9. import org.apache.commons.lang.Validate;
  10.  
  11. class MessagesQevent$DelayedMessage implements Comparable<MessagesQevent$DelayedMessage> {
  12.     private final int delay;
  13.     private final String raw;
  14.     private final String message;
  15.  
  16.     public MessagesQevent$DelayedMessage(int delay, String message) {
  17.         Validate.isTrue(delay >= 0, "Message delay can only be 0 or more.");
  18.         this.delay = delay;
  19.         this.raw = message;
  20.         this.message = Util.fmt(message);
  21.     }
  22.  
  23.     public boolean equals(Object o) {
  24.         if (this == o) {
  25.             return true;
  26.         } else if (o != null && this.getClass() == o.getClass()) {
  27.             MessagesQevent$DelayedMessage that = (MessagesQevent$DelayedMessage)o;
  28.             return this.delay != that.delay ? false : this.raw.equals(that.raw);
  29.         } else {
  30.             return false;
  31.         }
  32.     }
  33.  
  34.     public int hashCode() {
  35.         return this.delay;
  36.     }
  37.  
  38.     public int compareTo(MessagesQevent$DelayedMessage o) {
  39.         return Integer.compare(this.delay, o.delay);
  40.     }
  41. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top