This is the old documentation of lombok-pg. The new version can be found in the wiki of the github repository. Take me to the new Version then!

Tuple.tuple(...)

Overview

Detailed Description

With Lombok

1 import static lombok.Tuple.tuple;
2 
3 class TupleExample {
4   public void swap() {
5     int a, b = tuple(12);
6     tuple(a, b= tuple(b, a);
7   }
8 }

Vanilla Java

1 class TupleExample {
2   public void swap() {
3     int a = 1;
4     int b = 2;
5     int $tuple0 = a;
6     a = b;
7     b = a;
8   }
9 }

Small print

Smallprint