lombok-pg -

lombok
Class Tuple

java.lang.Object
  extended by lombok.Tuple

public class Tuple
extends Object


Constructor Summary
Tuple()
           
 
Method Summary
static Tuple tuple(Object... objects)
          A take on tuple assignments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tuple

public Tuple()
Method Detail

tuple

public static Tuple tuple(Object... objects)
A take on tuple assignments.
 public void tuple() {
        int a, b, c = tuple(1, 2, 3);
        int[] d = new int[] { 4, 5, 6 };
        tuple(a, b) = tuple(b, a);
        tuple(c, a, b) = tuple(d);
 }
 
Note: This is an experimental feature and might not work in some cases. Please file a bug report if you stumble over anything weird.


lombok-pg -

Copyright © 2010-2011 Philipp Eichhorn, licensed under the MIT licence.