GenuineSounds

These.

Oct 20th, 2014
387
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. package com.genuine.conjure.util;
  2.  
  3. import java.util.Optional;
  4.  
  5. public class BiReturn<T> {
  6.  
  7.     private final Optional<T> v1;
  8.  
  9.     private final Optional<T> v2;
  10.  
  11.     public BiReturn(T x, T y) {
  12.         this.v1 = Optional.of(x);
  13.         this.v2 = Optional.of(x);
  14.     }
  15.  
  16.     public Optional<T> getV1() {
  17.         return v1;
  18.     }
  19.  
  20.     public Optional<T> getV2() {
  21.         return v2;
  22.     }
  23. }
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment