brainfrz

Untitled

Oct 31st, 2015
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.66 KB | None | 0 0
  1. // Class that is implicitly defined:
  2. public class Sbasdb {
  3.     int ab;
  4.     String pk;
  5.  
  6.     Sbasdb(int ab, String pk)
  7.         this.ab = ab;
  8.         this.pk = pk;
  9.     }
  10. }
  11.  
  12.  
  13. // List of Sbasdb instances
  14. Sbasdb AOBIH = new Sbasdb(5, "iaob");
  15. Sbasdb OCVUY = new Sbasdb(15, "rbn");
  16. /* Snip all other Sbasdb that have any int and String in accordance with the semantics defined
  17.    by Sbasdb and that would logically be a Sbasdb */
  18. Sbasdb TIRMX = new Sbasdb(8907, "oidfyngbiuxny");
  19.  
  20. // The type of `Sbasdb`s I will accept out of the potentially infinite Sbasdb instances:
  21. public enum SbasdbType {
  22.     AOBIH  (5, "iaob"),
  23.     TIRMX  (8907, "oidfyngbiuxny");
  24. }
Advertisement
Add Comment
Please, Sign In to add comment