Libraries written in Kotlin are factored out into a separate project
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
/**
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
public interface BooleanIterable extends Iterable<Boolean> {
|
||||
@Override
|
||||
BooleanIterator iterator();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
/**
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
public abstract class BooleanIterator implements Iterator<Boolean> {
|
||||
public final Boolean next() {
|
||||
return nextBoolean();
|
||||
}
|
||||
|
||||
public abstract boolean nextBoolean();
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
/**
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
public interface ByteIterable extends Iterable<Byte> {
|
||||
@Override
|
||||
ByteIterator iterator();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
/**
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
public abstract class ByteIterator implements Iterator<Byte> {
|
||||
public final Byte next() {
|
||||
return nextByte();
|
||||
}
|
||||
|
||||
public abstract byte nextByte();
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public final class ByteRange implements Range<Byte>, ByteIterable {
|
||||
private final byte start;
|
||||
private final int count;
|
||||
|
||||
public static final ByteRange empty = new ByteRange((byte) 0,0);
|
||||
|
||||
public ByteRange(byte startValue, int count) {
|
||||
this.start = startValue;
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean contains(Byte item) {
|
||||
if (item == null) return false;
|
||||
if (count >= 0) {
|
||||
return item >= start && item < start + count;
|
||||
}
|
||||
return item <= start && item > start + count;
|
||||
}
|
||||
|
||||
public boolean getIsReversed() {
|
||||
return count < 0;
|
||||
}
|
||||
|
||||
public byte getStart() {
|
||||
return start;
|
||||
}
|
||||
|
||||
public byte getIteratorStart () {
|
||||
return count == 0 ? 1 : start;
|
||||
}
|
||||
|
||||
public byte getEnd() {
|
||||
return (byte) (count < 0 ? start + count + 1: count == 0 ? 0 : start+count-1);
|
||||
}
|
||||
|
||||
public int getSize() {
|
||||
return count < 0 ? -count : count;
|
||||
}
|
||||
|
||||
public ByteIterator step(int step) {
|
||||
if(step < 0)
|
||||
return new MyIterator(getEnd(), -count, -step);
|
||||
else
|
||||
return new MyIterator(start, count, step);
|
||||
}
|
||||
|
||||
public ByteRange minus() {
|
||||
return new ByteRange(getEnd(), -count);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ByteIterator iterator() {
|
||||
return new MyIterator(start, count, 1);
|
||||
}
|
||||
|
||||
public static ByteRange count(int length) {
|
||||
return new ByteRange((byte) 0, length);
|
||||
}
|
||||
|
||||
private static class MyIterator extends ByteIterator {
|
||||
private byte cur;
|
||||
private int step;
|
||||
private int count;
|
||||
|
||||
private final boolean reversed;
|
||||
|
||||
public MyIterator(byte startValue, int count, int step) {
|
||||
cur = startValue;
|
||||
this.step = step;
|
||||
if(count < 0) {
|
||||
reversed = true;
|
||||
count = -count;
|
||||
startValue += count;
|
||||
}
|
||||
else {
|
||||
reversed = false;
|
||||
}
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getHasNext() {
|
||||
return count > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte nextByte() {
|
||||
count -= step;
|
||||
if(reversed) {
|
||||
cur -= step;
|
||||
return (byte) (cur + step);
|
||||
}
|
||||
else {
|
||||
cur += step;
|
||||
return (byte) (cur - step);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
/**
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
public interface CharIterable extends Iterable<Character> {
|
||||
@Override
|
||||
CharIterator iterator();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
/**
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
public abstract class CharIterator implements Iterator<Character> {
|
||||
public final Character next() {
|
||||
return nextChar();
|
||||
}
|
||||
|
||||
public abstract char nextChar();
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public final class CharRange implements Range<Character>, CharIterable {
|
||||
private final char start;
|
||||
private final int count;
|
||||
|
||||
public static final CharRange empty = new CharRange((char) 0,0);
|
||||
|
||||
public CharRange(char startValue, int count) {
|
||||
this.start = startValue;
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean contains(Character item) {
|
||||
if (item == null) return false;
|
||||
if (count >= 0) {
|
||||
return item >= start && item < start + count;
|
||||
}
|
||||
return item <= start && item > start + count;
|
||||
}
|
||||
|
||||
public boolean getIsReversed() {
|
||||
return count < 0;
|
||||
}
|
||||
|
||||
public char getStart() {
|
||||
return start;
|
||||
}
|
||||
|
||||
public char getIteratorStart () {
|
||||
return count == 0 ? 1 : start;
|
||||
}
|
||||
|
||||
public char getEnd() {
|
||||
return (char) (count < 0 ? start + count + 1: count == 0 ? 0 : start+count-1);
|
||||
}
|
||||
|
||||
public int getSize() {
|
||||
return count < 0 ? -count : count;
|
||||
}
|
||||
|
||||
public CharRange minus() {
|
||||
return new CharRange(getEnd(), -count);
|
||||
}
|
||||
|
||||
public CharIterator step(int step) {
|
||||
if(step < 0)
|
||||
return new MyIterator(getEnd(), -count, -step);
|
||||
else
|
||||
return new MyIterator(start, count, step);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CharIterator iterator() {
|
||||
return new MyIterator(start, count, 1);
|
||||
}
|
||||
|
||||
public static CharRange count(int length) {
|
||||
return new CharRange((char) 0, length);
|
||||
}
|
||||
|
||||
private static class MyIterator extends CharIterator {
|
||||
private char cur;
|
||||
private int step;
|
||||
private int count;
|
||||
|
||||
private final boolean reversed;
|
||||
|
||||
public MyIterator(char startValue, int count, int step) {
|
||||
cur = startValue;
|
||||
this.step = step;
|
||||
if(count < 0) {
|
||||
reversed = true;
|
||||
count = -count;
|
||||
startValue += count;
|
||||
}
|
||||
else {
|
||||
reversed = false;
|
||||
}
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getHasNext() {
|
||||
return count > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public char nextChar() {
|
||||
count -= step;
|
||||
if(reversed) {
|
||||
cur -= step;
|
||||
return (char) (cur + step);
|
||||
}
|
||||
else {
|
||||
cur += step;
|
||||
return (char) (cur - step);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
public class DefaultJetObject implements Serializable {
|
||||
protected DefaultJetObject() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
/**
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
public interface DoubleIterable extends Iterable<Double> {
|
||||
@Override
|
||||
DoubleIterator iterator();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
/**
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
public abstract class DoubleIterator implements Iterator<Double> {
|
||||
public final Double next() {
|
||||
return nextDouble();
|
||||
}
|
||||
|
||||
public abstract double nextDouble();
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public final class DoubleRange implements Range<Double> {
|
||||
private final double start;
|
||||
private final double size;
|
||||
|
||||
public DoubleRange(double startValue, double size) {
|
||||
this.start = startValue;
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean contains(Double item) {
|
||||
if (item == null) return false;
|
||||
if (size >= 0) {
|
||||
return item >= start && item < start + size;
|
||||
}
|
||||
return item <= start && item > start + size;
|
||||
}
|
||||
|
||||
public DoubleIterator step(double step) {
|
||||
if(step < 0)
|
||||
return new MyIterator(getEnd(), -size, -step);
|
||||
else
|
||||
return new MyIterator(start, size, step);
|
||||
}
|
||||
|
||||
public boolean getIsReversed() {
|
||||
return size < 0;
|
||||
}
|
||||
|
||||
public double getStart() {
|
||||
return start;
|
||||
}
|
||||
|
||||
public double getEnd() {
|
||||
return size < 0 ? start + size: start + size;
|
||||
}
|
||||
|
||||
public double getSize() {
|
||||
return size < 0 ? -size : size;
|
||||
}
|
||||
|
||||
public DoubleRange minus() {
|
||||
return new DoubleRange(getEnd(), -size);
|
||||
}
|
||||
|
||||
public static DoubleRange count(int length) {
|
||||
return new DoubleRange(0, length);
|
||||
}
|
||||
|
||||
private static class MyIterator extends DoubleIterator {
|
||||
private double cur;
|
||||
private double step;
|
||||
private final double end;
|
||||
|
||||
private final boolean reversed;
|
||||
|
||||
public MyIterator(double startValue, double size, double step) {
|
||||
cur = startValue;
|
||||
this.step = step;
|
||||
if(size < 0) {
|
||||
reversed = true;
|
||||
end = startValue-size;
|
||||
startValue -= size;
|
||||
}
|
||||
else {
|
||||
reversed = false;
|
||||
this.end = startValue + size;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getHasNext() {
|
||||
if(reversed)
|
||||
return cur >= end;
|
||||
else
|
||||
return cur <= end;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double nextDouble() {
|
||||
if(reversed) {
|
||||
cur -= step;
|
||||
return cur + step;
|
||||
}
|
||||
else {
|
||||
cur += step;
|
||||
return cur - step;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author max
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction0<E, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction0() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.() : R}";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction1<E, D1, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction1() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction10<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction10() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction11<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction11() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction12<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction12() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction13<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction13() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12, d13: D13) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction14<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction14() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12, d13: D13, d14: D14) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction15<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction15() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12, d13: D13, d14: D14, d15: D15) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction16<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction16() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12, d13: D13, d14: D14, d15: D15, d16: D16) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction17<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction17() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16, D17 d17);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12, d13: D13, d14: D14, d15: D15, d16: D16, d17: D17) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction18<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction18() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16, D17 d17, D18 d18);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12, d13: D13, d14: D14, d15: D15, d16: D16, d17: D17, d18: D18) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction19<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction19() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16, D17 d17, D18 d18, D19 d19);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12, d13: D13, d14: D14, d15: D15, d16: D16, d17: D17, d18: D18, d19: D19) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction2<E, D1, D2, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction2() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction20<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction20() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16, D17 d17, D18 d18, D19 d19, D20 d20);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12, d13: D13, d14: D14, d15: D15, d16: D16, d17: D17, d18: D18, d19: D19, d20: D20) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction21<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction21() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16, D17 d17, D18 d18, D19 d19, D20 d20, D21 d21);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12, d13: D13, d14: D14, d15: D15, d16: D16, d17: D17, d18: D18, d19: D19, d20: D20, d21: D21) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction22<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction22() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16, D17 d17, D18 d18, D19 d19, D20 d20, D21 d21, D22 d22);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12, d13: D13, d14: D14, d15: D15, d16: D16, d17: D17, d18: D18, d19: D19, d20: D20, d21: D21, d22: D22) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction3<E, D1, D2, D3, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction3() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2, D3 d3);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2, d3: D3) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction4<E, D1, D2, D3, D4, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction4() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2, D3 d3, D4 d4);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2, d3: D3, d4: D4) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction5<E, D1, D2, D3, D4, D5, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction5() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2, D3 d3, D4 d4, D5 d5);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction6<E, D1, D2, D3, D4, D5, D6, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction6() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction7<E, D1, D2, D3, D4, D5, D6, D7, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction7() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction8<E, D1, D2, D3, D4, D5, D6, D7, D8, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction8() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class ExtensionFunction9<E, D1, D2, D3, D4, D5, D6, D7, D8, D9, R> extends DefaultJetObject {
|
||||
protected ExtensionFunction9() {
|
||||
super();
|
||||
}
|
||||
|
||||
public abstract R invoke(E receiver, D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{E.(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
/**
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
public interface FloatIterable extends Iterable<Float> {
|
||||
@Override
|
||||
FloatIterator iterator();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
/**
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
public abstract class FloatIterator implements Iterator<Float> {
|
||||
public final Float next() {
|
||||
return nextFloat();
|
||||
}
|
||||
|
||||
public abstract float nextFloat();
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public final class FloatRange implements Range<Float> {
|
||||
private final float start;
|
||||
private final float size;
|
||||
|
||||
public FloatRange(float startValue, float size) {
|
||||
this.start = startValue;
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean contains(Float item) {
|
||||
if (item == null) return false;
|
||||
if (size >= 0) {
|
||||
return item >= start && item < start + size;
|
||||
}
|
||||
return item <= start && item > start + size;
|
||||
}
|
||||
|
||||
public FloatIterator step(float step) {
|
||||
if(step < 0)
|
||||
return new MyIterator(getEnd(), -size, -step);
|
||||
else
|
||||
return new MyIterator(start, size, step);
|
||||
}
|
||||
|
||||
public boolean getIsReversed() {
|
||||
return size < 0;
|
||||
}
|
||||
|
||||
public float getStart() {
|
||||
return start;
|
||||
}
|
||||
|
||||
public float getEnd() {
|
||||
return size < 0 ? start + size: start + size;
|
||||
}
|
||||
|
||||
public float getSize() {
|
||||
return size < 0 ? -size : size;
|
||||
}
|
||||
|
||||
public FloatRange minus() {
|
||||
return new FloatRange(getEnd(), -size);
|
||||
}
|
||||
|
||||
public static FloatRange count(int length) {
|
||||
return new FloatRange(0, length);
|
||||
}
|
||||
|
||||
private static class MyIterator extends FloatIterator {
|
||||
private float cur;
|
||||
private float step;
|
||||
private final float end;
|
||||
|
||||
private final boolean reversed;
|
||||
|
||||
public MyIterator(float startValue, float size, float step) {
|
||||
cur = startValue;
|
||||
this.step = step;
|
||||
if(size < 0) {
|
||||
reversed = true;
|
||||
end = startValue-size;
|
||||
startValue -= size;
|
||||
}
|
||||
else {
|
||||
reversed = false;
|
||||
this.end = startValue + size;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getHasNext() {
|
||||
if(reversed)
|
||||
return cur >= end;
|
||||
else
|
||||
return cur <= end;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float nextFloat() {
|
||||
if(reversed) {
|
||||
cur -= step;
|
||||
return cur + step;
|
||||
}
|
||||
else {
|
||||
cur += step;
|
||||
return cur - step;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author max
|
||||
*/
|
||||
package jet;
|
||||
|
||||
/** A function with no arguments */
|
||||
public abstract class Function0<R> extends DefaultJetObject {
|
||||
public abstract R invoke();
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{() : R}";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function1<D1, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function10<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function11<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function12<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function13<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12, d13: D13) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function14<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12, d13: D13, d14: D14) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function15<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12, d13: D13, d14: D14, d15: D15) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function16<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12, d13: D13, d14: D14, d15: D15, d16: D16) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function17<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16, D17 d17);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12, d13: D13, d14: D14, d15: D15, d16: D16, d17: D17) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function18<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16, D17 d17, D18 d18);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12, d13: D13, d14: D14, d15: D15, d16: D16, d17: D17, d18: D18) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function19<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16, D17 d17, D18 d18, D19 d19);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12, d13: D13, d14: D14, d15: D15, d16: D16, d17: D17, d18: D18, d19: D19) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function2<D1, D2, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1, D2 d2);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function20<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16, D17 d17, D18 d18, D19 d19, D20 d20);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12, d13: D13, d14: D14, d15: D15, d16: D16, d17: D17, d18: D18, d19: D19, d20: D20) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function21<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16, D17 d17, D18 d18, D19 d19, D20 d20, D21 d21);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12, d13: D13, d14: D14, d15: D15, d16: D16, d17: D17, d18: D18, d19: D19, d20: D20, d21: D21) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function22<D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9, D10 d10, D11 d11, D12 d12, D13 d13, D14 d14, D15 d15, D16 d16, D17 d17, D18 d18, D19 d19, D20 d20, D21 d21, D22 d22);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9, d10: D10, d11: D11, d12: D12, d13: D13, d14: D14, d15: D15, d16: D16, d17: D17, d18: D18, d19: D19, d20: D20, d21: D21, d22: D22) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function3<D1, D2, D3, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1, D2 d2, D3 d3);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2, d3: D3) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function4<D1, D2, D3, D4, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2, d3: D3, d4: D4) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function5<D1, D2, D3, D4, D5, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function6<D1, D2, D3, D4, D5, D6, R> extends DefaultJetObject {
|
||||
|
||||
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function7<D1, D2, D3, D4, D5, D6, D7, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function8<D1, D2, D3, D4, D5, D6, D7, D8, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
package jet;
|
||||
|
||||
public abstract class Function9<D1, D2, D3, D4, D5, D6, D7, D8, D9, R> extends DefaultJetObject {
|
||||
public abstract R invoke(D1 d1, D2 d2, D3 d3, D4 d4, D5 d5, D6 d6, D7 d7, D8 d8, D9 d9);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{(d1: D1, d2: D2, d3: D3, d4: D4, d5: D5, d6: D6, d7: D7, d8: D8, d9: D9) : R)}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
/**
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
public interface IntIterable extends Iterable<Integer> {
|
||||
@Override
|
||||
IntIterator iterator();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
/**
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
public abstract class IntIterator implements Iterator<Integer> {
|
||||
public final Integer next() {
|
||||
return nextInt();
|
||||
}
|
||||
|
||||
public abstract int nextInt();
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public final class IntRange implements Range<Integer>, IntIterable {
|
||||
private final int start;
|
||||
private final int count;
|
||||
|
||||
public static final IntRange empty = new IntRange(0,0);
|
||||
|
||||
public IntRange(int startValue, int count) {
|
||||
this.start = startValue;
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean contains(Integer item) {
|
||||
if (item == null) return false;
|
||||
if (count >= 0) {
|
||||
return item >= start && item < start + count;
|
||||
}
|
||||
return item <= start && item > start + count;
|
||||
}
|
||||
|
||||
public IntIterator step(int step) {
|
||||
if(step < 0)
|
||||
return new MyIterator(getEnd(), -count, -step);
|
||||
else
|
||||
return new MyIterator(start, count, step);
|
||||
}
|
||||
|
||||
public boolean getIsReversed() {
|
||||
return count < 0;
|
||||
}
|
||||
|
||||
public int getIteratorStart () {
|
||||
return count == 0 ? 1 : start;
|
||||
}
|
||||
|
||||
public int getStart() {
|
||||
return start;
|
||||
}
|
||||
|
||||
public int getEnd() {
|
||||
return count < 0 ? start + count + 1: count == 0 ? 0 : start+count-1;
|
||||
}
|
||||
|
||||
public int getSize() {
|
||||
return count < 0 ? -count : count;
|
||||
}
|
||||
|
||||
public IntRange minus() {
|
||||
return new IntRange(getEnd(), -count);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IntIterator iterator() {
|
||||
return new MyIterator(start, count, 1);
|
||||
}
|
||||
|
||||
public static IntRange count(int length) {
|
||||
return new IntRange(0, length);
|
||||
}
|
||||
|
||||
private static class MyIterator extends IntIterator {
|
||||
private int cur;
|
||||
private int step;
|
||||
private int count;
|
||||
|
||||
private final boolean reversed;
|
||||
|
||||
public MyIterator(int startValue, int count, int step) {
|
||||
cur = startValue;
|
||||
this.step = step;
|
||||
if(count < 0) {
|
||||
reversed = true;
|
||||
count = -count;
|
||||
startValue += count;
|
||||
}
|
||||
else {
|
||||
reversed = false;
|
||||
}
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getHasNext() {
|
||||
return count > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int nextInt() {
|
||||
count -= step;
|
||||
if(reversed) {
|
||||
cur -= step;
|
||||
return cur + step;
|
||||
}
|
||||
else {
|
||||
cur += step;
|
||||
return cur - step;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public interface Iterable<T> {
|
||||
Iterator<T> iterator ();
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
import jet.runtime.typeinfo.JetMethod;
|
||||
|
||||
public interface Iterator<T> {
|
||||
@JetMethod(kind = JetMethod.KIND_PROPERTY)
|
||||
boolean getHasNext();
|
||||
T next ();
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
/**
|
||||
* @author abreslav
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
public interface JetObject {
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
/**
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
public interface LongIterable extends Iterable<Long> {
|
||||
@Override
|
||||
LongIterator iterator();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
/**
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
public abstract class LongIterator implements Iterator<Long> {
|
||||
public final Long next() {
|
||||
return nextLong();
|
||||
}
|
||||
|
||||
public abstract long nextLong();
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public final class LongRange implements Range<Long>, LongIterable {
|
||||
private final long start;
|
||||
private final long count;
|
||||
|
||||
public static final LongRange empty = new LongRange(0L,0L);
|
||||
|
||||
public LongRange(long startValue, long count) {
|
||||
this.start = startValue;
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
public LongIterator step(long step) {
|
||||
if(step < 0)
|
||||
return new MyIterator(getEnd(), -count, -step);
|
||||
else
|
||||
return new MyIterator(start, count, step);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean contains(Long item) {
|
||||
if (item == null) return false;
|
||||
if (count >= 0) {
|
||||
return item >= start && item < start + count;
|
||||
}
|
||||
return item <= start && item > start + count;
|
||||
}
|
||||
|
||||
public boolean getIsReversed() {
|
||||
return count < 0;
|
||||
}
|
||||
|
||||
public long getStart() {
|
||||
return start;
|
||||
}
|
||||
|
||||
public long getIteratorStart () {
|
||||
return count == 0 ? 1 : start;
|
||||
}
|
||||
|
||||
public long getEnd() {
|
||||
return count < 0 ? start + count + 1: count == 0 ? 0 : start+count-1;
|
||||
}
|
||||
|
||||
public long getSize() {
|
||||
return count < 0 ? -count : count;
|
||||
}
|
||||
|
||||
public LongRange minus() {
|
||||
return new LongRange(getEnd(), -count);
|
||||
}
|
||||
|
||||
@Override
|
||||
public LongIterator iterator() {
|
||||
return new MyIterator(start, count, 1);
|
||||
}
|
||||
|
||||
public static LongRange count(int length) {
|
||||
return new LongRange(0, length);
|
||||
}
|
||||
|
||||
private static class MyIterator extends LongIterator {
|
||||
private long cur;
|
||||
private long step;
|
||||
private long count;
|
||||
|
||||
private final boolean reversed;
|
||||
|
||||
public MyIterator(long startValue, long count, long step) {
|
||||
cur = startValue;
|
||||
this.step = step;
|
||||
if(count < 0) {
|
||||
reversed = true;
|
||||
count = -count;
|
||||
startValue += count;
|
||||
}
|
||||
else {
|
||||
reversed = false;
|
||||
}
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getHasNext() {
|
||||
return count > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long nextLong() {
|
||||
count -= step;
|
||||
if(reversed) {
|
||||
cur -= step;
|
||||
return (cur + step);
|
||||
}
|
||||
else {
|
||||
cur += step;
|
||||
return (cur - step);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
/**
|
||||
* @author yole
|
||||
*/
|
||||
public class NoPatternMatchedException extends RuntimeException {
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public interface Range<T extends Comparable<T>> {
|
||||
boolean contains(T item);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
/**
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
public interface ShortIterable extends Iterable<Short> {
|
||||
@Override
|
||||
ShortIterator iterator();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
/**
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
public abstract class ShortIterator implements Iterator<Short> {
|
||||
public final Short next() {
|
||||
return nextShort();
|
||||
}
|
||||
|
||||
public abstract short nextShort();
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public final class ShortRange implements Range<Short>, ShortIterable {
|
||||
private final short start;
|
||||
private final int count;
|
||||
|
||||
public static final ShortRange empty = new ShortRange((short) 0,0);
|
||||
|
||||
public ShortRange(short startValue, int count) {
|
||||
this.start = startValue;
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
public ShortIterator step(int step) {
|
||||
if(step < 0)
|
||||
return new MyIterator(getEnd(), -count, -step);
|
||||
else
|
||||
return new MyIterator(start, count, step);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean contains(Short item) {
|
||||
if (item == null) return false;
|
||||
if (count >= 0) {
|
||||
return item >= start && item < start + count;
|
||||
}
|
||||
return item <= start && item > start + count;
|
||||
}
|
||||
|
||||
public boolean getIsReversed() {
|
||||
return count < 0;
|
||||
}
|
||||
|
||||
public short getStart() {
|
||||
return start;
|
||||
}
|
||||
|
||||
public int getIteratorStart () {
|
||||
return count == 0 ? 1 : start;
|
||||
}
|
||||
|
||||
public short getEnd() {
|
||||
return (short) (count < 0 ? start + count + 1: count == 0 ? 0 : start+count-1);
|
||||
}
|
||||
|
||||
public int getSize() {
|
||||
return count < 0 ? -count : count;
|
||||
}
|
||||
|
||||
public ShortRange minus() {
|
||||
return new ShortRange(getEnd(), -count);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ShortIterator iterator() {
|
||||
return new MyIterator(start, count, 1);
|
||||
}
|
||||
|
||||
public static ShortRange count(int length) {
|
||||
return new ShortRange((byte) 0, length);
|
||||
}
|
||||
|
||||
private static class MyIterator extends ShortIterator {
|
||||
private short cur;
|
||||
private int step;
|
||||
private int count;
|
||||
|
||||
private final boolean reversed;
|
||||
|
||||
public MyIterator(short startValue, int count, int step) {
|
||||
cur = startValue;
|
||||
this.step = step;
|
||||
if(count < 0) {
|
||||
reversed = true;
|
||||
count = -count;
|
||||
startValue += count;
|
||||
}
|
||||
else {
|
||||
reversed = false;
|
||||
}
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getHasNext() {
|
||||
return count > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public short nextShort() {
|
||||
count -= step;
|
||||
if(reversed) {
|
||||
cur -= step;
|
||||
return (short) (cur + step);
|
||||
}
|
||||
else {
|
||||
cur += step;
|
||||
return (short) (cur - step);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
/**
|
||||
* @author alex.tkachman
|
||||
*/
|
||||
public class Tuple0 {
|
||||
public static final Tuple0 INSTANCE = new Tuple0();
|
||||
|
||||
private Tuple0() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "()";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
return o == INSTANCE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return 239;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple1<T1> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
|
||||
public Tuple1(T1 t1) {
|
||||
_1 = t1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple1 t = (Tuple1) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
public final T3 _3;
|
||||
public final T4 _4;
|
||||
public final T5 _5;
|
||||
public final T6 _6;
|
||||
public final T7 _7;
|
||||
public final T8 _8;
|
||||
public final T9 _9;
|
||||
public final T10 _10;
|
||||
|
||||
public Tuple10(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
_3 = t3;
|
||||
_4 = t4;
|
||||
_5 = t5;
|
||||
_6 = t6;
|
||||
_7 = t7;
|
||||
_8 = t8;
|
||||
_9 = t9;
|
||||
_10 = t10;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ", " + _3 + ", " + _4 + ", " + _5 + ", " + _6 + ", " + _7 + ", " + _8 + ", " + _9 + ", " + _10 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
public final T3 get_3() {
|
||||
return _3;
|
||||
}
|
||||
public final T4 get_4() {
|
||||
return _4;
|
||||
}
|
||||
public final T5 get_5() {
|
||||
return _5;
|
||||
}
|
||||
public final T6 get_6() {
|
||||
return _6;
|
||||
}
|
||||
public final T7 get_7() {
|
||||
return _7;
|
||||
}
|
||||
public final T8 get_8() {
|
||||
return _8;
|
||||
}
|
||||
public final T9 get_9() {
|
||||
return _9;
|
||||
}
|
||||
public final T10 get_10() {
|
||||
return _10;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple10 t = (Tuple10) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
if (_3 != null ? !_3.equals(t._3) : t._3 != null) return false;
|
||||
if (_4 != null ? !_4.equals(t._4) : t._4 != null) return false;
|
||||
if (_5 != null ? !_5.equals(t._5) : t._5 != null) return false;
|
||||
if (_6 != null ? !_6.equals(t._6) : t._6 != null) return false;
|
||||
if (_7 != null ? !_7.equals(t._7) : t._7 != null) return false;
|
||||
if (_8 != null ? !_8.equals(t._8) : t._8 != null) return false;
|
||||
if (_9 != null ? !_9.equals(t._9) : t._9 != null) return false;
|
||||
if (_10 != null ? !_10.equals(t._10) : t._10 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
result = 31 * result + (_3 != null ? _3.hashCode() : 0);
|
||||
result = 31 * result + (_4 != null ? _4.hashCode() : 0);
|
||||
result = 31 * result + (_5 != null ? _5.hashCode() : 0);
|
||||
result = 31 * result + (_6 != null ? _6.hashCode() : 0);
|
||||
result = 31 * result + (_7 != null ? _7.hashCode() : 0);
|
||||
result = 31 * result + (_8 != null ? _8.hashCode() : 0);
|
||||
result = 31 * result + (_9 != null ? _9.hashCode() : 0);
|
||||
result = 31 * result + (_10 != null ? _10.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
public final T3 _3;
|
||||
public final T4 _4;
|
||||
public final T5 _5;
|
||||
public final T6 _6;
|
||||
public final T7 _7;
|
||||
public final T8 _8;
|
||||
public final T9 _9;
|
||||
public final T10 _10;
|
||||
public final T11 _11;
|
||||
|
||||
public Tuple11(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
_3 = t3;
|
||||
_4 = t4;
|
||||
_5 = t5;
|
||||
_6 = t6;
|
||||
_7 = t7;
|
||||
_8 = t8;
|
||||
_9 = t9;
|
||||
_10 = t10;
|
||||
_11 = t11;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ", " + _3 + ", " + _4 + ", " + _5 + ", " + _6 + ", " + _7 + ", " + _8 + ", " + _9 + ", " + _10 + ", " + _11 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
public final T3 get_3() {
|
||||
return _3;
|
||||
}
|
||||
public final T4 get_4() {
|
||||
return _4;
|
||||
}
|
||||
public final T5 get_5() {
|
||||
return _5;
|
||||
}
|
||||
public final T6 get_6() {
|
||||
return _6;
|
||||
}
|
||||
public final T7 get_7() {
|
||||
return _7;
|
||||
}
|
||||
public final T8 get_8() {
|
||||
return _8;
|
||||
}
|
||||
public final T9 get_9() {
|
||||
return _9;
|
||||
}
|
||||
public final T10 get_10() {
|
||||
return _10;
|
||||
}
|
||||
public final T11 get_11() {
|
||||
return _11;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple11 t = (Tuple11) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
if (_3 != null ? !_3.equals(t._3) : t._3 != null) return false;
|
||||
if (_4 != null ? !_4.equals(t._4) : t._4 != null) return false;
|
||||
if (_5 != null ? !_5.equals(t._5) : t._5 != null) return false;
|
||||
if (_6 != null ? !_6.equals(t._6) : t._6 != null) return false;
|
||||
if (_7 != null ? !_7.equals(t._7) : t._7 != null) return false;
|
||||
if (_8 != null ? !_8.equals(t._8) : t._8 != null) return false;
|
||||
if (_9 != null ? !_9.equals(t._9) : t._9 != null) return false;
|
||||
if (_10 != null ? !_10.equals(t._10) : t._10 != null) return false;
|
||||
if (_11 != null ? !_11.equals(t._11) : t._11 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
result = 31 * result + (_3 != null ? _3.hashCode() : 0);
|
||||
result = 31 * result + (_4 != null ? _4.hashCode() : 0);
|
||||
result = 31 * result + (_5 != null ? _5.hashCode() : 0);
|
||||
result = 31 * result + (_6 != null ? _6.hashCode() : 0);
|
||||
result = 31 * result + (_7 != null ? _7.hashCode() : 0);
|
||||
result = 31 * result + (_8 != null ? _8.hashCode() : 0);
|
||||
result = 31 * result + (_9 != null ? _9.hashCode() : 0);
|
||||
result = 31 * result + (_10 != null ? _10.hashCode() : 0);
|
||||
result = 31 * result + (_11 != null ? _11.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
public final T3 _3;
|
||||
public final T4 _4;
|
||||
public final T5 _5;
|
||||
public final T6 _6;
|
||||
public final T7 _7;
|
||||
public final T8 _8;
|
||||
public final T9 _9;
|
||||
public final T10 _10;
|
||||
public final T11 _11;
|
||||
public final T12 _12;
|
||||
|
||||
public Tuple12(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
_3 = t3;
|
||||
_4 = t4;
|
||||
_5 = t5;
|
||||
_6 = t6;
|
||||
_7 = t7;
|
||||
_8 = t8;
|
||||
_9 = t9;
|
||||
_10 = t10;
|
||||
_11 = t11;
|
||||
_12 = t12;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ", " + _3 + ", " + _4 + ", " + _5 + ", " + _6 + ", " + _7 + ", " + _8 + ", " + _9 + ", " + _10 + ", " + _11 + ", " + _12 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
public final T3 get_3() {
|
||||
return _3;
|
||||
}
|
||||
public final T4 get_4() {
|
||||
return _4;
|
||||
}
|
||||
public final T5 get_5() {
|
||||
return _5;
|
||||
}
|
||||
public final T6 get_6() {
|
||||
return _6;
|
||||
}
|
||||
public final T7 get_7() {
|
||||
return _7;
|
||||
}
|
||||
public final T8 get_8() {
|
||||
return _8;
|
||||
}
|
||||
public final T9 get_9() {
|
||||
return _9;
|
||||
}
|
||||
public final T10 get_10() {
|
||||
return _10;
|
||||
}
|
||||
public final T11 get_11() {
|
||||
return _11;
|
||||
}
|
||||
public final T12 get_12() {
|
||||
return _12;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple12 t = (Tuple12) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
if (_3 != null ? !_3.equals(t._3) : t._3 != null) return false;
|
||||
if (_4 != null ? !_4.equals(t._4) : t._4 != null) return false;
|
||||
if (_5 != null ? !_5.equals(t._5) : t._5 != null) return false;
|
||||
if (_6 != null ? !_6.equals(t._6) : t._6 != null) return false;
|
||||
if (_7 != null ? !_7.equals(t._7) : t._7 != null) return false;
|
||||
if (_8 != null ? !_8.equals(t._8) : t._8 != null) return false;
|
||||
if (_9 != null ? !_9.equals(t._9) : t._9 != null) return false;
|
||||
if (_10 != null ? !_10.equals(t._10) : t._10 != null) return false;
|
||||
if (_11 != null ? !_11.equals(t._11) : t._11 != null) return false;
|
||||
if (_12 != null ? !_12.equals(t._12) : t._12 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
result = 31 * result + (_3 != null ? _3.hashCode() : 0);
|
||||
result = 31 * result + (_4 != null ? _4.hashCode() : 0);
|
||||
result = 31 * result + (_5 != null ? _5.hashCode() : 0);
|
||||
result = 31 * result + (_6 != null ? _6.hashCode() : 0);
|
||||
result = 31 * result + (_7 != null ? _7.hashCode() : 0);
|
||||
result = 31 * result + (_8 != null ? _8.hashCode() : 0);
|
||||
result = 31 * result + (_9 != null ? _9.hashCode() : 0);
|
||||
result = 31 * result + (_10 != null ? _10.hashCode() : 0);
|
||||
result = 31 * result + (_11 != null ? _11.hashCode() : 0);
|
||||
result = 31 * result + (_12 != null ? _12.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
public final T3 _3;
|
||||
public final T4 _4;
|
||||
public final T5 _5;
|
||||
public final T6 _6;
|
||||
public final T7 _7;
|
||||
public final T8 _8;
|
||||
public final T9 _9;
|
||||
public final T10 _10;
|
||||
public final T11 _11;
|
||||
public final T12 _12;
|
||||
public final T13 _13;
|
||||
|
||||
public Tuple13(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
_3 = t3;
|
||||
_4 = t4;
|
||||
_5 = t5;
|
||||
_6 = t6;
|
||||
_7 = t7;
|
||||
_8 = t8;
|
||||
_9 = t9;
|
||||
_10 = t10;
|
||||
_11 = t11;
|
||||
_12 = t12;
|
||||
_13 = t13;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ", " + _3 + ", " + _4 + ", " + _5 + ", " + _6 + ", " + _7 + ", " + _8 + ", " + _9 + ", " + _10 + ", " + _11 + ", " + _12 + ", " + _13 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
public final T3 get_3() {
|
||||
return _3;
|
||||
}
|
||||
public final T4 get_4() {
|
||||
return _4;
|
||||
}
|
||||
public final T5 get_5() {
|
||||
return _5;
|
||||
}
|
||||
public final T6 get_6() {
|
||||
return _6;
|
||||
}
|
||||
public final T7 get_7() {
|
||||
return _7;
|
||||
}
|
||||
public final T8 get_8() {
|
||||
return _8;
|
||||
}
|
||||
public final T9 get_9() {
|
||||
return _9;
|
||||
}
|
||||
public final T10 get_10() {
|
||||
return _10;
|
||||
}
|
||||
public final T11 get_11() {
|
||||
return _11;
|
||||
}
|
||||
public final T12 get_12() {
|
||||
return _12;
|
||||
}
|
||||
public final T13 get_13() {
|
||||
return _13;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple13 t = (Tuple13) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
if (_3 != null ? !_3.equals(t._3) : t._3 != null) return false;
|
||||
if (_4 != null ? !_4.equals(t._4) : t._4 != null) return false;
|
||||
if (_5 != null ? !_5.equals(t._5) : t._5 != null) return false;
|
||||
if (_6 != null ? !_6.equals(t._6) : t._6 != null) return false;
|
||||
if (_7 != null ? !_7.equals(t._7) : t._7 != null) return false;
|
||||
if (_8 != null ? !_8.equals(t._8) : t._8 != null) return false;
|
||||
if (_9 != null ? !_9.equals(t._9) : t._9 != null) return false;
|
||||
if (_10 != null ? !_10.equals(t._10) : t._10 != null) return false;
|
||||
if (_11 != null ? !_11.equals(t._11) : t._11 != null) return false;
|
||||
if (_12 != null ? !_12.equals(t._12) : t._12 != null) return false;
|
||||
if (_13 != null ? !_13.equals(t._13) : t._13 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
result = 31 * result + (_3 != null ? _3.hashCode() : 0);
|
||||
result = 31 * result + (_4 != null ? _4.hashCode() : 0);
|
||||
result = 31 * result + (_5 != null ? _5.hashCode() : 0);
|
||||
result = 31 * result + (_6 != null ? _6.hashCode() : 0);
|
||||
result = 31 * result + (_7 != null ? _7.hashCode() : 0);
|
||||
result = 31 * result + (_8 != null ? _8.hashCode() : 0);
|
||||
result = 31 * result + (_9 != null ? _9.hashCode() : 0);
|
||||
result = 31 * result + (_10 != null ? _10.hashCode() : 0);
|
||||
result = 31 * result + (_11 != null ? _11.hashCode() : 0);
|
||||
result = 31 * result + (_12 != null ? _12.hashCode() : 0);
|
||||
result = 31 * result + (_13 != null ? _13.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
public final T3 _3;
|
||||
public final T4 _4;
|
||||
public final T5 _5;
|
||||
public final T6 _6;
|
||||
public final T7 _7;
|
||||
public final T8 _8;
|
||||
public final T9 _9;
|
||||
public final T10 _10;
|
||||
public final T11 _11;
|
||||
public final T12 _12;
|
||||
public final T13 _13;
|
||||
public final T14 _14;
|
||||
|
||||
public Tuple14(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
_3 = t3;
|
||||
_4 = t4;
|
||||
_5 = t5;
|
||||
_6 = t6;
|
||||
_7 = t7;
|
||||
_8 = t8;
|
||||
_9 = t9;
|
||||
_10 = t10;
|
||||
_11 = t11;
|
||||
_12 = t12;
|
||||
_13 = t13;
|
||||
_14 = t14;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ", " + _3 + ", " + _4 + ", " + _5 + ", " + _6 + ", " + _7 + ", " + _8 + ", " + _9 + ", " + _10 + ", " + _11 + ", " + _12 + ", " + _13 + ", " + _14 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
public final T3 get_3() {
|
||||
return _3;
|
||||
}
|
||||
public final T4 get_4() {
|
||||
return _4;
|
||||
}
|
||||
public final T5 get_5() {
|
||||
return _5;
|
||||
}
|
||||
public final T6 get_6() {
|
||||
return _6;
|
||||
}
|
||||
public final T7 get_7() {
|
||||
return _7;
|
||||
}
|
||||
public final T8 get_8() {
|
||||
return _8;
|
||||
}
|
||||
public final T9 get_9() {
|
||||
return _9;
|
||||
}
|
||||
public final T10 get_10() {
|
||||
return _10;
|
||||
}
|
||||
public final T11 get_11() {
|
||||
return _11;
|
||||
}
|
||||
public final T12 get_12() {
|
||||
return _12;
|
||||
}
|
||||
public final T13 get_13() {
|
||||
return _13;
|
||||
}
|
||||
public final T14 get_14() {
|
||||
return _14;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple14 t = (Tuple14) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
if (_3 != null ? !_3.equals(t._3) : t._3 != null) return false;
|
||||
if (_4 != null ? !_4.equals(t._4) : t._4 != null) return false;
|
||||
if (_5 != null ? !_5.equals(t._5) : t._5 != null) return false;
|
||||
if (_6 != null ? !_6.equals(t._6) : t._6 != null) return false;
|
||||
if (_7 != null ? !_7.equals(t._7) : t._7 != null) return false;
|
||||
if (_8 != null ? !_8.equals(t._8) : t._8 != null) return false;
|
||||
if (_9 != null ? !_9.equals(t._9) : t._9 != null) return false;
|
||||
if (_10 != null ? !_10.equals(t._10) : t._10 != null) return false;
|
||||
if (_11 != null ? !_11.equals(t._11) : t._11 != null) return false;
|
||||
if (_12 != null ? !_12.equals(t._12) : t._12 != null) return false;
|
||||
if (_13 != null ? !_13.equals(t._13) : t._13 != null) return false;
|
||||
if (_14 != null ? !_14.equals(t._14) : t._14 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
result = 31 * result + (_3 != null ? _3.hashCode() : 0);
|
||||
result = 31 * result + (_4 != null ? _4.hashCode() : 0);
|
||||
result = 31 * result + (_5 != null ? _5.hashCode() : 0);
|
||||
result = 31 * result + (_6 != null ? _6.hashCode() : 0);
|
||||
result = 31 * result + (_7 != null ? _7.hashCode() : 0);
|
||||
result = 31 * result + (_8 != null ? _8.hashCode() : 0);
|
||||
result = 31 * result + (_9 != null ? _9.hashCode() : 0);
|
||||
result = 31 * result + (_10 != null ? _10.hashCode() : 0);
|
||||
result = 31 * result + (_11 != null ? _11.hashCode() : 0);
|
||||
result = 31 * result + (_12 != null ? _12.hashCode() : 0);
|
||||
result = 31 * result + (_13 != null ? _13.hashCode() : 0);
|
||||
result = 31 * result + (_14 != null ? _14.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
public final T3 _3;
|
||||
public final T4 _4;
|
||||
public final T5 _5;
|
||||
public final T6 _6;
|
||||
public final T7 _7;
|
||||
public final T8 _8;
|
||||
public final T9 _9;
|
||||
public final T10 _10;
|
||||
public final T11 _11;
|
||||
public final T12 _12;
|
||||
public final T13 _13;
|
||||
public final T14 _14;
|
||||
public final T15 _15;
|
||||
|
||||
public Tuple15(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
_3 = t3;
|
||||
_4 = t4;
|
||||
_5 = t5;
|
||||
_6 = t6;
|
||||
_7 = t7;
|
||||
_8 = t8;
|
||||
_9 = t9;
|
||||
_10 = t10;
|
||||
_11 = t11;
|
||||
_12 = t12;
|
||||
_13 = t13;
|
||||
_14 = t14;
|
||||
_15 = t15;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ", " + _3 + ", " + _4 + ", " + _5 + ", " + _6 + ", " + _7 + ", " + _8 + ", " + _9 + ", " + _10 + ", " + _11 + ", " + _12 + ", " + _13 + ", " + _14 + ", " + _15 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
public final T3 get_3() {
|
||||
return _3;
|
||||
}
|
||||
public final T4 get_4() {
|
||||
return _4;
|
||||
}
|
||||
public final T5 get_5() {
|
||||
return _5;
|
||||
}
|
||||
public final T6 get_6() {
|
||||
return _6;
|
||||
}
|
||||
public final T7 get_7() {
|
||||
return _7;
|
||||
}
|
||||
public final T8 get_8() {
|
||||
return _8;
|
||||
}
|
||||
public final T9 get_9() {
|
||||
return _9;
|
||||
}
|
||||
public final T10 get_10() {
|
||||
return _10;
|
||||
}
|
||||
public final T11 get_11() {
|
||||
return _11;
|
||||
}
|
||||
public final T12 get_12() {
|
||||
return _12;
|
||||
}
|
||||
public final T13 get_13() {
|
||||
return _13;
|
||||
}
|
||||
public final T14 get_14() {
|
||||
return _14;
|
||||
}
|
||||
public final T15 get_15() {
|
||||
return _15;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple15 t = (Tuple15) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
if (_3 != null ? !_3.equals(t._3) : t._3 != null) return false;
|
||||
if (_4 != null ? !_4.equals(t._4) : t._4 != null) return false;
|
||||
if (_5 != null ? !_5.equals(t._5) : t._5 != null) return false;
|
||||
if (_6 != null ? !_6.equals(t._6) : t._6 != null) return false;
|
||||
if (_7 != null ? !_7.equals(t._7) : t._7 != null) return false;
|
||||
if (_8 != null ? !_8.equals(t._8) : t._8 != null) return false;
|
||||
if (_9 != null ? !_9.equals(t._9) : t._9 != null) return false;
|
||||
if (_10 != null ? !_10.equals(t._10) : t._10 != null) return false;
|
||||
if (_11 != null ? !_11.equals(t._11) : t._11 != null) return false;
|
||||
if (_12 != null ? !_12.equals(t._12) : t._12 != null) return false;
|
||||
if (_13 != null ? !_13.equals(t._13) : t._13 != null) return false;
|
||||
if (_14 != null ? !_14.equals(t._14) : t._14 != null) return false;
|
||||
if (_15 != null ? !_15.equals(t._15) : t._15 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
result = 31 * result + (_3 != null ? _3.hashCode() : 0);
|
||||
result = 31 * result + (_4 != null ? _4.hashCode() : 0);
|
||||
result = 31 * result + (_5 != null ? _5.hashCode() : 0);
|
||||
result = 31 * result + (_6 != null ? _6.hashCode() : 0);
|
||||
result = 31 * result + (_7 != null ? _7.hashCode() : 0);
|
||||
result = 31 * result + (_8 != null ? _8.hashCode() : 0);
|
||||
result = 31 * result + (_9 != null ? _9.hashCode() : 0);
|
||||
result = 31 * result + (_10 != null ? _10.hashCode() : 0);
|
||||
result = 31 * result + (_11 != null ? _11.hashCode() : 0);
|
||||
result = 31 * result + (_12 != null ? _12.hashCode() : 0);
|
||||
result = 31 * result + (_13 != null ? _13.hashCode() : 0);
|
||||
result = 31 * result + (_14 != null ? _14.hashCode() : 0);
|
||||
result = 31 * result + (_15 != null ? _15.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,152 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
public final T3 _3;
|
||||
public final T4 _4;
|
||||
public final T5 _5;
|
||||
public final T6 _6;
|
||||
public final T7 _7;
|
||||
public final T8 _8;
|
||||
public final T9 _9;
|
||||
public final T10 _10;
|
||||
public final T11 _11;
|
||||
public final T12 _12;
|
||||
public final T13 _13;
|
||||
public final T14 _14;
|
||||
public final T15 _15;
|
||||
public final T16 _16;
|
||||
|
||||
public Tuple16(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
_3 = t3;
|
||||
_4 = t4;
|
||||
_5 = t5;
|
||||
_6 = t6;
|
||||
_7 = t7;
|
||||
_8 = t8;
|
||||
_9 = t9;
|
||||
_10 = t10;
|
||||
_11 = t11;
|
||||
_12 = t12;
|
||||
_13 = t13;
|
||||
_14 = t14;
|
||||
_15 = t15;
|
||||
_16 = t16;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ", " + _3 + ", " + _4 + ", " + _5 + ", " + _6 + ", " + _7 + ", " + _8 + ", " + _9 + ", " + _10 + ", " + _11 + ", " + _12 + ", " + _13 + ", " + _14 + ", " + _15 + ", " + _16 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
public final T3 get_3() {
|
||||
return _3;
|
||||
}
|
||||
public final T4 get_4() {
|
||||
return _4;
|
||||
}
|
||||
public final T5 get_5() {
|
||||
return _5;
|
||||
}
|
||||
public final T6 get_6() {
|
||||
return _6;
|
||||
}
|
||||
public final T7 get_7() {
|
||||
return _7;
|
||||
}
|
||||
public final T8 get_8() {
|
||||
return _8;
|
||||
}
|
||||
public final T9 get_9() {
|
||||
return _9;
|
||||
}
|
||||
public final T10 get_10() {
|
||||
return _10;
|
||||
}
|
||||
public final T11 get_11() {
|
||||
return _11;
|
||||
}
|
||||
public final T12 get_12() {
|
||||
return _12;
|
||||
}
|
||||
public final T13 get_13() {
|
||||
return _13;
|
||||
}
|
||||
public final T14 get_14() {
|
||||
return _14;
|
||||
}
|
||||
public final T15 get_15() {
|
||||
return _15;
|
||||
}
|
||||
public final T16 get_16() {
|
||||
return _16;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple16 t = (Tuple16) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
if (_3 != null ? !_3.equals(t._3) : t._3 != null) return false;
|
||||
if (_4 != null ? !_4.equals(t._4) : t._4 != null) return false;
|
||||
if (_5 != null ? !_5.equals(t._5) : t._5 != null) return false;
|
||||
if (_6 != null ? !_6.equals(t._6) : t._6 != null) return false;
|
||||
if (_7 != null ? !_7.equals(t._7) : t._7 != null) return false;
|
||||
if (_8 != null ? !_8.equals(t._8) : t._8 != null) return false;
|
||||
if (_9 != null ? !_9.equals(t._9) : t._9 != null) return false;
|
||||
if (_10 != null ? !_10.equals(t._10) : t._10 != null) return false;
|
||||
if (_11 != null ? !_11.equals(t._11) : t._11 != null) return false;
|
||||
if (_12 != null ? !_12.equals(t._12) : t._12 != null) return false;
|
||||
if (_13 != null ? !_13.equals(t._13) : t._13 != null) return false;
|
||||
if (_14 != null ? !_14.equals(t._14) : t._14 != null) return false;
|
||||
if (_15 != null ? !_15.equals(t._15) : t._15 != null) return false;
|
||||
if (_16 != null ? !_16.equals(t._16) : t._16 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
result = 31 * result + (_3 != null ? _3.hashCode() : 0);
|
||||
result = 31 * result + (_4 != null ? _4.hashCode() : 0);
|
||||
result = 31 * result + (_5 != null ? _5.hashCode() : 0);
|
||||
result = 31 * result + (_6 != null ? _6.hashCode() : 0);
|
||||
result = 31 * result + (_7 != null ? _7.hashCode() : 0);
|
||||
result = 31 * result + (_8 != null ? _8.hashCode() : 0);
|
||||
result = 31 * result + (_9 != null ? _9.hashCode() : 0);
|
||||
result = 31 * result + (_10 != null ? _10.hashCode() : 0);
|
||||
result = 31 * result + (_11 != null ? _11.hashCode() : 0);
|
||||
result = 31 * result + (_12 != null ? _12.hashCode() : 0);
|
||||
result = 31 * result + (_13 != null ? _13.hashCode() : 0);
|
||||
result = 31 * result + (_14 != null ? _14.hashCode() : 0);
|
||||
result = 31 * result + (_15 != null ? _15.hashCode() : 0);
|
||||
result = 31 * result + (_16 != null ? _16.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
public final T3 _3;
|
||||
public final T4 _4;
|
||||
public final T5 _5;
|
||||
public final T6 _6;
|
||||
public final T7 _7;
|
||||
public final T8 _8;
|
||||
public final T9 _9;
|
||||
public final T10 _10;
|
||||
public final T11 _11;
|
||||
public final T12 _12;
|
||||
public final T13 _13;
|
||||
public final T14 _14;
|
||||
public final T15 _15;
|
||||
public final T16 _16;
|
||||
public final T17 _17;
|
||||
|
||||
public Tuple17(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
_3 = t3;
|
||||
_4 = t4;
|
||||
_5 = t5;
|
||||
_6 = t6;
|
||||
_7 = t7;
|
||||
_8 = t8;
|
||||
_9 = t9;
|
||||
_10 = t10;
|
||||
_11 = t11;
|
||||
_12 = t12;
|
||||
_13 = t13;
|
||||
_14 = t14;
|
||||
_15 = t15;
|
||||
_16 = t16;
|
||||
_17 = t17;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ", " + _3 + ", " + _4 + ", " + _5 + ", " + _6 + ", " + _7 + ", " + _8 + ", " + _9 + ", " + _10 + ", " + _11 + ", " + _12 + ", " + _13 + ", " + _14 + ", " + _15 + ", " + _16 + ", " + _17 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
public final T3 get_3() {
|
||||
return _3;
|
||||
}
|
||||
public final T4 get_4() {
|
||||
return _4;
|
||||
}
|
||||
public final T5 get_5() {
|
||||
return _5;
|
||||
}
|
||||
public final T6 get_6() {
|
||||
return _6;
|
||||
}
|
||||
public final T7 get_7() {
|
||||
return _7;
|
||||
}
|
||||
public final T8 get_8() {
|
||||
return _8;
|
||||
}
|
||||
public final T9 get_9() {
|
||||
return _9;
|
||||
}
|
||||
public final T10 get_10() {
|
||||
return _10;
|
||||
}
|
||||
public final T11 get_11() {
|
||||
return _11;
|
||||
}
|
||||
public final T12 get_12() {
|
||||
return _12;
|
||||
}
|
||||
public final T13 get_13() {
|
||||
return _13;
|
||||
}
|
||||
public final T14 get_14() {
|
||||
return _14;
|
||||
}
|
||||
public final T15 get_15() {
|
||||
return _15;
|
||||
}
|
||||
public final T16 get_16() {
|
||||
return _16;
|
||||
}
|
||||
public final T17 get_17() {
|
||||
return _17;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple17 t = (Tuple17) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
if (_3 != null ? !_3.equals(t._3) : t._3 != null) return false;
|
||||
if (_4 != null ? !_4.equals(t._4) : t._4 != null) return false;
|
||||
if (_5 != null ? !_5.equals(t._5) : t._5 != null) return false;
|
||||
if (_6 != null ? !_6.equals(t._6) : t._6 != null) return false;
|
||||
if (_7 != null ? !_7.equals(t._7) : t._7 != null) return false;
|
||||
if (_8 != null ? !_8.equals(t._8) : t._8 != null) return false;
|
||||
if (_9 != null ? !_9.equals(t._9) : t._9 != null) return false;
|
||||
if (_10 != null ? !_10.equals(t._10) : t._10 != null) return false;
|
||||
if (_11 != null ? !_11.equals(t._11) : t._11 != null) return false;
|
||||
if (_12 != null ? !_12.equals(t._12) : t._12 != null) return false;
|
||||
if (_13 != null ? !_13.equals(t._13) : t._13 != null) return false;
|
||||
if (_14 != null ? !_14.equals(t._14) : t._14 != null) return false;
|
||||
if (_15 != null ? !_15.equals(t._15) : t._15 != null) return false;
|
||||
if (_16 != null ? !_16.equals(t._16) : t._16 != null) return false;
|
||||
if (_17 != null ? !_17.equals(t._17) : t._17 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
result = 31 * result + (_3 != null ? _3.hashCode() : 0);
|
||||
result = 31 * result + (_4 != null ? _4.hashCode() : 0);
|
||||
result = 31 * result + (_5 != null ? _5.hashCode() : 0);
|
||||
result = 31 * result + (_6 != null ? _6.hashCode() : 0);
|
||||
result = 31 * result + (_7 != null ? _7.hashCode() : 0);
|
||||
result = 31 * result + (_8 != null ? _8.hashCode() : 0);
|
||||
result = 31 * result + (_9 != null ? _9.hashCode() : 0);
|
||||
result = 31 * result + (_10 != null ? _10.hashCode() : 0);
|
||||
result = 31 * result + (_11 != null ? _11.hashCode() : 0);
|
||||
result = 31 * result + (_12 != null ? _12.hashCode() : 0);
|
||||
result = 31 * result + (_13 != null ? _13.hashCode() : 0);
|
||||
result = 31 * result + (_14 != null ? _14.hashCode() : 0);
|
||||
result = 31 * result + (_15 != null ? _15.hashCode() : 0);
|
||||
result = 31 * result + (_16 != null ? _16.hashCode() : 0);
|
||||
result = 31 * result + (_17 != null ? _17.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,166 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
public final T3 _3;
|
||||
public final T4 _4;
|
||||
public final T5 _5;
|
||||
public final T6 _6;
|
||||
public final T7 _7;
|
||||
public final T8 _8;
|
||||
public final T9 _9;
|
||||
public final T10 _10;
|
||||
public final T11 _11;
|
||||
public final T12 _12;
|
||||
public final T13 _13;
|
||||
public final T14 _14;
|
||||
public final T15 _15;
|
||||
public final T16 _16;
|
||||
public final T17 _17;
|
||||
public final T18 _18;
|
||||
|
||||
public Tuple18(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
_3 = t3;
|
||||
_4 = t4;
|
||||
_5 = t5;
|
||||
_6 = t6;
|
||||
_7 = t7;
|
||||
_8 = t8;
|
||||
_9 = t9;
|
||||
_10 = t10;
|
||||
_11 = t11;
|
||||
_12 = t12;
|
||||
_13 = t13;
|
||||
_14 = t14;
|
||||
_15 = t15;
|
||||
_16 = t16;
|
||||
_17 = t17;
|
||||
_18 = t18;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ", " + _3 + ", " + _4 + ", " + _5 + ", " + _6 + ", " + _7 + ", " + _8 + ", " + _9 + ", " + _10 + ", " + _11 + ", " + _12 + ", " + _13 + ", " + _14 + ", " + _15 + ", " + _16 + ", " + _17 + ", " + _18 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
public final T3 get_3() {
|
||||
return _3;
|
||||
}
|
||||
public final T4 get_4() {
|
||||
return _4;
|
||||
}
|
||||
public final T5 get_5() {
|
||||
return _5;
|
||||
}
|
||||
public final T6 get_6() {
|
||||
return _6;
|
||||
}
|
||||
public final T7 get_7() {
|
||||
return _7;
|
||||
}
|
||||
public final T8 get_8() {
|
||||
return _8;
|
||||
}
|
||||
public final T9 get_9() {
|
||||
return _9;
|
||||
}
|
||||
public final T10 get_10() {
|
||||
return _10;
|
||||
}
|
||||
public final T11 get_11() {
|
||||
return _11;
|
||||
}
|
||||
public final T12 get_12() {
|
||||
return _12;
|
||||
}
|
||||
public final T13 get_13() {
|
||||
return _13;
|
||||
}
|
||||
public final T14 get_14() {
|
||||
return _14;
|
||||
}
|
||||
public final T15 get_15() {
|
||||
return _15;
|
||||
}
|
||||
public final T16 get_16() {
|
||||
return _16;
|
||||
}
|
||||
public final T17 get_17() {
|
||||
return _17;
|
||||
}
|
||||
public final T18 get_18() {
|
||||
return _18;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple18 t = (Tuple18) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
if (_3 != null ? !_3.equals(t._3) : t._3 != null) return false;
|
||||
if (_4 != null ? !_4.equals(t._4) : t._4 != null) return false;
|
||||
if (_5 != null ? !_5.equals(t._5) : t._5 != null) return false;
|
||||
if (_6 != null ? !_6.equals(t._6) : t._6 != null) return false;
|
||||
if (_7 != null ? !_7.equals(t._7) : t._7 != null) return false;
|
||||
if (_8 != null ? !_8.equals(t._8) : t._8 != null) return false;
|
||||
if (_9 != null ? !_9.equals(t._9) : t._9 != null) return false;
|
||||
if (_10 != null ? !_10.equals(t._10) : t._10 != null) return false;
|
||||
if (_11 != null ? !_11.equals(t._11) : t._11 != null) return false;
|
||||
if (_12 != null ? !_12.equals(t._12) : t._12 != null) return false;
|
||||
if (_13 != null ? !_13.equals(t._13) : t._13 != null) return false;
|
||||
if (_14 != null ? !_14.equals(t._14) : t._14 != null) return false;
|
||||
if (_15 != null ? !_15.equals(t._15) : t._15 != null) return false;
|
||||
if (_16 != null ? !_16.equals(t._16) : t._16 != null) return false;
|
||||
if (_17 != null ? !_17.equals(t._17) : t._17 != null) return false;
|
||||
if (_18 != null ? !_18.equals(t._18) : t._18 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
result = 31 * result + (_3 != null ? _3.hashCode() : 0);
|
||||
result = 31 * result + (_4 != null ? _4.hashCode() : 0);
|
||||
result = 31 * result + (_5 != null ? _5.hashCode() : 0);
|
||||
result = 31 * result + (_6 != null ? _6.hashCode() : 0);
|
||||
result = 31 * result + (_7 != null ? _7.hashCode() : 0);
|
||||
result = 31 * result + (_8 != null ? _8.hashCode() : 0);
|
||||
result = 31 * result + (_9 != null ? _9.hashCode() : 0);
|
||||
result = 31 * result + (_10 != null ? _10.hashCode() : 0);
|
||||
result = 31 * result + (_11 != null ? _11.hashCode() : 0);
|
||||
result = 31 * result + (_12 != null ? _12.hashCode() : 0);
|
||||
result = 31 * result + (_13 != null ? _13.hashCode() : 0);
|
||||
result = 31 * result + (_14 != null ? _14.hashCode() : 0);
|
||||
result = 31 * result + (_15 != null ? _15.hashCode() : 0);
|
||||
result = 31 * result + (_16 != null ? _16.hashCode() : 0);
|
||||
result = 31 * result + (_17 != null ? _17.hashCode() : 0);
|
||||
result = 31 * result + (_18 != null ? _18.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,173 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
public final T3 _3;
|
||||
public final T4 _4;
|
||||
public final T5 _5;
|
||||
public final T6 _6;
|
||||
public final T7 _7;
|
||||
public final T8 _8;
|
||||
public final T9 _9;
|
||||
public final T10 _10;
|
||||
public final T11 _11;
|
||||
public final T12 _12;
|
||||
public final T13 _13;
|
||||
public final T14 _14;
|
||||
public final T15 _15;
|
||||
public final T16 _16;
|
||||
public final T17 _17;
|
||||
public final T18 _18;
|
||||
public final T19 _19;
|
||||
|
||||
public Tuple19(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
_3 = t3;
|
||||
_4 = t4;
|
||||
_5 = t5;
|
||||
_6 = t6;
|
||||
_7 = t7;
|
||||
_8 = t8;
|
||||
_9 = t9;
|
||||
_10 = t10;
|
||||
_11 = t11;
|
||||
_12 = t12;
|
||||
_13 = t13;
|
||||
_14 = t14;
|
||||
_15 = t15;
|
||||
_16 = t16;
|
||||
_17 = t17;
|
||||
_18 = t18;
|
||||
_19 = t19;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ", " + _3 + ", " + _4 + ", " + _5 + ", " + _6 + ", " + _7 + ", " + _8 + ", " + _9 + ", " + _10 + ", " + _11 + ", " + _12 + ", " + _13 + ", " + _14 + ", " + _15 + ", " + _16 + ", " + _17 + ", " + _18 + ", " + _19 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
public final T3 get_3() {
|
||||
return _3;
|
||||
}
|
||||
public final T4 get_4() {
|
||||
return _4;
|
||||
}
|
||||
public final T5 get_5() {
|
||||
return _5;
|
||||
}
|
||||
public final T6 get_6() {
|
||||
return _6;
|
||||
}
|
||||
public final T7 get_7() {
|
||||
return _7;
|
||||
}
|
||||
public final T8 get_8() {
|
||||
return _8;
|
||||
}
|
||||
public final T9 get_9() {
|
||||
return _9;
|
||||
}
|
||||
public final T10 get_10() {
|
||||
return _10;
|
||||
}
|
||||
public final T11 get_11() {
|
||||
return _11;
|
||||
}
|
||||
public final T12 get_12() {
|
||||
return _12;
|
||||
}
|
||||
public final T13 get_13() {
|
||||
return _13;
|
||||
}
|
||||
public final T14 get_14() {
|
||||
return _14;
|
||||
}
|
||||
public final T15 get_15() {
|
||||
return _15;
|
||||
}
|
||||
public final T16 get_16() {
|
||||
return _16;
|
||||
}
|
||||
public final T17 get_17() {
|
||||
return _17;
|
||||
}
|
||||
public final T18 get_18() {
|
||||
return _18;
|
||||
}
|
||||
public final T19 get_19() {
|
||||
return _19;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple19 t = (Tuple19) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
if (_3 != null ? !_3.equals(t._3) : t._3 != null) return false;
|
||||
if (_4 != null ? !_4.equals(t._4) : t._4 != null) return false;
|
||||
if (_5 != null ? !_5.equals(t._5) : t._5 != null) return false;
|
||||
if (_6 != null ? !_6.equals(t._6) : t._6 != null) return false;
|
||||
if (_7 != null ? !_7.equals(t._7) : t._7 != null) return false;
|
||||
if (_8 != null ? !_8.equals(t._8) : t._8 != null) return false;
|
||||
if (_9 != null ? !_9.equals(t._9) : t._9 != null) return false;
|
||||
if (_10 != null ? !_10.equals(t._10) : t._10 != null) return false;
|
||||
if (_11 != null ? !_11.equals(t._11) : t._11 != null) return false;
|
||||
if (_12 != null ? !_12.equals(t._12) : t._12 != null) return false;
|
||||
if (_13 != null ? !_13.equals(t._13) : t._13 != null) return false;
|
||||
if (_14 != null ? !_14.equals(t._14) : t._14 != null) return false;
|
||||
if (_15 != null ? !_15.equals(t._15) : t._15 != null) return false;
|
||||
if (_16 != null ? !_16.equals(t._16) : t._16 != null) return false;
|
||||
if (_17 != null ? !_17.equals(t._17) : t._17 != null) return false;
|
||||
if (_18 != null ? !_18.equals(t._18) : t._18 != null) return false;
|
||||
if (_19 != null ? !_19.equals(t._19) : t._19 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
result = 31 * result + (_3 != null ? _3.hashCode() : 0);
|
||||
result = 31 * result + (_4 != null ? _4.hashCode() : 0);
|
||||
result = 31 * result + (_5 != null ? _5.hashCode() : 0);
|
||||
result = 31 * result + (_6 != null ? _6.hashCode() : 0);
|
||||
result = 31 * result + (_7 != null ? _7.hashCode() : 0);
|
||||
result = 31 * result + (_8 != null ? _8.hashCode() : 0);
|
||||
result = 31 * result + (_9 != null ? _9.hashCode() : 0);
|
||||
result = 31 * result + (_10 != null ? _10.hashCode() : 0);
|
||||
result = 31 * result + (_11 != null ? _11.hashCode() : 0);
|
||||
result = 31 * result + (_12 != null ? _12.hashCode() : 0);
|
||||
result = 31 * result + (_13 != null ? _13.hashCode() : 0);
|
||||
result = 31 * result + (_14 != null ? _14.hashCode() : 0);
|
||||
result = 31 * result + (_15 != null ? _15.hashCode() : 0);
|
||||
result = 31 * result + (_16 != null ? _16.hashCode() : 0);
|
||||
result = 31 * result + (_17 != null ? _17.hashCode() : 0);
|
||||
result = 31 * result + (_18 != null ? _18.hashCode() : 0);
|
||||
result = 31 * result + (_19 != null ? _19.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple2<T1, T2> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
|
||||
public Tuple2(T1 t1, T2 t2) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple2 t = (Tuple2) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,180 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
public final T3 _3;
|
||||
public final T4 _4;
|
||||
public final T5 _5;
|
||||
public final T6 _6;
|
||||
public final T7 _7;
|
||||
public final T8 _8;
|
||||
public final T9 _9;
|
||||
public final T10 _10;
|
||||
public final T11 _11;
|
||||
public final T12 _12;
|
||||
public final T13 _13;
|
||||
public final T14 _14;
|
||||
public final T15 _15;
|
||||
public final T16 _16;
|
||||
public final T17 _17;
|
||||
public final T18 _18;
|
||||
public final T19 _19;
|
||||
public final T20 _20;
|
||||
|
||||
public Tuple20(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
_3 = t3;
|
||||
_4 = t4;
|
||||
_5 = t5;
|
||||
_6 = t6;
|
||||
_7 = t7;
|
||||
_8 = t8;
|
||||
_9 = t9;
|
||||
_10 = t10;
|
||||
_11 = t11;
|
||||
_12 = t12;
|
||||
_13 = t13;
|
||||
_14 = t14;
|
||||
_15 = t15;
|
||||
_16 = t16;
|
||||
_17 = t17;
|
||||
_18 = t18;
|
||||
_19 = t19;
|
||||
_20 = t20;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ", " + _3 + ", " + _4 + ", " + _5 + ", " + _6 + ", " + _7 + ", " + _8 + ", " + _9 + ", " + _10 + ", " + _11 + ", " + _12 + ", " + _13 + ", " + _14 + ", " + _15 + ", " + _16 + ", " + _17 + ", " + _18 + ", " + _19 + ", " + _20 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
public final T3 get_3() {
|
||||
return _3;
|
||||
}
|
||||
public final T4 get_4() {
|
||||
return _4;
|
||||
}
|
||||
public final T5 get_5() {
|
||||
return _5;
|
||||
}
|
||||
public final T6 get_6() {
|
||||
return _6;
|
||||
}
|
||||
public final T7 get_7() {
|
||||
return _7;
|
||||
}
|
||||
public final T8 get_8() {
|
||||
return _8;
|
||||
}
|
||||
public final T9 get_9() {
|
||||
return _9;
|
||||
}
|
||||
public final T10 get_10() {
|
||||
return _10;
|
||||
}
|
||||
public final T11 get_11() {
|
||||
return _11;
|
||||
}
|
||||
public final T12 get_12() {
|
||||
return _12;
|
||||
}
|
||||
public final T13 get_13() {
|
||||
return _13;
|
||||
}
|
||||
public final T14 get_14() {
|
||||
return _14;
|
||||
}
|
||||
public final T15 get_15() {
|
||||
return _15;
|
||||
}
|
||||
public final T16 get_16() {
|
||||
return _16;
|
||||
}
|
||||
public final T17 get_17() {
|
||||
return _17;
|
||||
}
|
||||
public final T18 get_18() {
|
||||
return _18;
|
||||
}
|
||||
public final T19 get_19() {
|
||||
return _19;
|
||||
}
|
||||
public final T20 get_20() {
|
||||
return _20;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple20 t = (Tuple20) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
if (_3 != null ? !_3.equals(t._3) : t._3 != null) return false;
|
||||
if (_4 != null ? !_4.equals(t._4) : t._4 != null) return false;
|
||||
if (_5 != null ? !_5.equals(t._5) : t._5 != null) return false;
|
||||
if (_6 != null ? !_6.equals(t._6) : t._6 != null) return false;
|
||||
if (_7 != null ? !_7.equals(t._7) : t._7 != null) return false;
|
||||
if (_8 != null ? !_8.equals(t._8) : t._8 != null) return false;
|
||||
if (_9 != null ? !_9.equals(t._9) : t._9 != null) return false;
|
||||
if (_10 != null ? !_10.equals(t._10) : t._10 != null) return false;
|
||||
if (_11 != null ? !_11.equals(t._11) : t._11 != null) return false;
|
||||
if (_12 != null ? !_12.equals(t._12) : t._12 != null) return false;
|
||||
if (_13 != null ? !_13.equals(t._13) : t._13 != null) return false;
|
||||
if (_14 != null ? !_14.equals(t._14) : t._14 != null) return false;
|
||||
if (_15 != null ? !_15.equals(t._15) : t._15 != null) return false;
|
||||
if (_16 != null ? !_16.equals(t._16) : t._16 != null) return false;
|
||||
if (_17 != null ? !_17.equals(t._17) : t._17 != null) return false;
|
||||
if (_18 != null ? !_18.equals(t._18) : t._18 != null) return false;
|
||||
if (_19 != null ? !_19.equals(t._19) : t._19 != null) return false;
|
||||
if (_20 != null ? !_20.equals(t._20) : t._20 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
result = 31 * result + (_3 != null ? _3.hashCode() : 0);
|
||||
result = 31 * result + (_4 != null ? _4.hashCode() : 0);
|
||||
result = 31 * result + (_5 != null ? _5.hashCode() : 0);
|
||||
result = 31 * result + (_6 != null ? _6.hashCode() : 0);
|
||||
result = 31 * result + (_7 != null ? _7.hashCode() : 0);
|
||||
result = 31 * result + (_8 != null ? _8.hashCode() : 0);
|
||||
result = 31 * result + (_9 != null ? _9.hashCode() : 0);
|
||||
result = 31 * result + (_10 != null ? _10.hashCode() : 0);
|
||||
result = 31 * result + (_11 != null ? _11.hashCode() : 0);
|
||||
result = 31 * result + (_12 != null ? _12.hashCode() : 0);
|
||||
result = 31 * result + (_13 != null ? _13.hashCode() : 0);
|
||||
result = 31 * result + (_14 != null ? _14.hashCode() : 0);
|
||||
result = 31 * result + (_15 != null ? _15.hashCode() : 0);
|
||||
result = 31 * result + (_16 != null ? _16.hashCode() : 0);
|
||||
result = 31 * result + (_17 != null ? _17.hashCode() : 0);
|
||||
result = 31 * result + (_18 != null ? _18.hashCode() : 0);
|
||||
result = 31 * result + (_19 != null ? _19.hashCode() : 0);
|
||||
result = 31 * result + (_20 != null ? _20.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,187 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
public final T3 _3;
|
||||
public final T4 _4;
|
||||
public final T5 _5;
|
||||
public final T6 _6;
|
||||
public final T7 _7;
|
||||
public final T8 _8;
|
||||
public final T9 _9;
|
||||
public final T10 _10;
|
||||
public final T11 _11;
|
||||
public final T12 _12;
|
||||
public final T13 _13;
|
||||
public final T14 _14;
|
||||
public final T15 _15;
|
||||
public final T16 _16;
|
||||
public final T17 _17;
|
||||
public final T18 _18;
|
||||
public final T19 _19;
|
||||
public final T20 _20;
|
||||
public final T21 _21;
|
||||
|
||||
public Tuple21(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
_3 = t3;
|
||||
_4 = t4;
|
||||
_5 = t5;
|
||||
_6 = t6;
|
||||
_7 = t7;
|
||||
_8 = t8;
|
||||
_9 = t9;
|
||||
_10 = t10;
|
||||
_11 = t11;
|
||||
_12 = t12;
|
||||
_13 = t13;
|
||||
_14 = t14;
|
||||
_15 = t15;
|
||||
_16 = t16;
|
||||
_17 = t17;
|
||||
_18 = t18;
|
||||
_19 = t19;
|
||||
_20 = t20;
|
||||
_21 = t21;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ", " + _3 + ", " + _4 + ", " + _5 + ", " + _6 + ", " + _7 + ", " + _8 + ", " + _9 + ", " + _10 + ", " + _11 + ", " + _12 + ", " + _13 + ", " + _14 + ", " + _15 + ", " + _16 + ", " + _17 + ", " + _18 + ", " + _19 + ", " + _20 + ", " + _21 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
public final T3 get_3() {
|
||||
return _3;
|
||||
}
|
||||
public final T4 get_4() {
|
||||
return _4;
|
||||
}
|
||||
public final T5 get_5() {
|
||||
return _5;
|
||||
}
|
||||
public final T6 get_6() {
|
||||
return _6;
|
||||
}
|
||||
public final T7 get_7() {
|
||||
return _7;
|
||||
}
|
||||
public final T8 get_8() {
|
||||
return _8;
|
||||
}
|
||||
public final T9 get_9() {
|
||||
return _9;
|
||||
}
|
||||
public final T10 get_10() {
|
||||
return _10;
|
||||
}
|
||||
public final T11 get_11() {
|
||||
return _11;
|
||||
}
|
||||
public final T12 get_12() {
|
||||
return _12;
|
||||
}
|
||||
public final T13 get_13() {
|
||||
return _13;
|
||||
}
|
||||
public final T14 get_14() {
|
||||
return _14;
|
||||
}
|
||||
public final T15 get_15() {
|
||||
return _15;
|
||||
}
|
||||
public final T16 get_16() {
|
||||
return _16;
|
||||
}
|
||||
public final T17 get_17() {
|
||||
return _17;
|
||||
}
|
||||
public final T18 get_18() {
|
||||
return _18;
|
||||
}
|
||||
public final T19 get_19() {
|
||||
return _19;
|
||||
}
|
||||
public final T20 get_20() {
|
||||
return _20;
|
||||
}
|
||||
public final T21 get_21() {
|
||||
return _21;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple21 t = (Tuple21) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
if (_3 != null ? !_3.equals(t._3) : t._3 != null) return false;
|
||||
if (_4 != null ? !_4.equals(t._4) : t._4 != null) return false;
|
||||
if (_5 != null ? !_5.equals(t._5) : t._5 != null) return false;
|
||||
if (_6 != null ? !_6.equals(t._6) : t._6 != null) return false;
|
||||
if (_7 != null ? !_7.equals(t._7) : t._7 != null) return false;
|
||||
if (_8 != null ? !_8.equals(t._8) : t._8 != null) return false;
|
||||
if (_9 != null ? !_9.equals(t._9) : t._9 != null) return false;
|
||||
if (_10 != null ? !_10.equals(t._10) : t._10 != null) return false;
|
||||
if (_11 != null ? !_11.equals(t._11) : t._11 != null) return false;
|
||||
if (_12 != null ? !_12.equals(t._12) : t._12 != null) return false;
|
||||
if (_13 != null ? !_13.equals(t._13) : t._13 != null) return false;
|
||||
if (_14 != null ? !_14.equals(t._14) : t._14 != null) return false;
|
||||
if (_15 != null ? !_15.equals(t._15) : t._15 != null) return false;
|
||||
if (_16 != null ? !_16.equals(t._16) : t._16 != null) return false;
|
||||
if (_17 != null ? !_17.equals(t._17) : t._17 != null) return false;
|
||||
if (_18 != null ? !_18.equals(t._18) : t._18 != null) return false;
|
||||
if (_19 != null ? !_19.equals(t._19) : t._19 != null) return false;
|
||||
if (_20 != null ? !_20.equals(t._20) : t._20 != null) return false;
|
||||
if (_21 != null ? !_21.equals(t._21) : t._21 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
result = 31 * result + (_3 != null ? _3.hashCode() : 0);
|
||||
result = 31 * result + (_4 != null ? _4.hashCode() : 0);
|
||||
result = 31 * result + (_5 != null ? _5.hashCode() : 0);
|
||||
result = 31 * result + (_6 != null ? _6.hashCode() : 0);
|
||||
result = 31 * result + (_7 != null ? _7.hashCode() : 0);
|
||||
result = 31 * result + (_8 != null ? _8.hashCode() : 0);
|
||||
result = 31 * result + (_9 != null ? _9.hashCode() : 0);
|
||||
result = 31 * result + (_10 != null ? _10.hashCode() : 0);
|
||||
result = 31 * result + (_11 != null ? _11.hashCode() : 0);
|
||||
result = 31 * result + (_12 != null ? _12.hashCode() : 0);
|
||||
result = 31 * result + (_13 != null ? _13.hashCode() : 0);
|
||||
result = 31 * result + (_14 != null ? _14.hashCode() : 0);
|
||||
result = 31 * result + (_15 != null ? _15.hashCode() : 0);
|
||||
result = 31 * result + (_16 != null ? _16.hashCode() : 0);
|
||||
result = 31 * result + (_17 != null ? _17.hashCode() : 0);
|
||||
result = 31 * result + (_18 != null ? _18.hashCode() : 0);
|
||||
result = 31 * result + (_19 != null ? _19.hashCode() : 0);
|
||||
result = 31 * result + (_20 != null ? _20.hashCode() : 0);
|
||||
result = 31 * result + (_21 != null ? _21.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,194 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
public final T3 _3;
|
||||
public final T4 _4;
|
||||
public final T5 _5;
|
||||
public final T6 _6;
|
||||
public final T7 _7;
|
||||
public final T8 _8;
|
||||
public final T9 _9;
|
||||
public final T10 _10;
|
||||
public final T11 _11;
|
||||
public final T12 _12;
|
||||
public final T13 _13;
|
||||
public final T14 _14;
|
||||
public final T15 _15;
|
||||
public final T16 _16;
|
||||
public final T17 _17;
|
||||
public final T18 _18;
|
||||
public final T19 _19;
|
||||
public final T20 _20;
|
||||
public final T21 _21;
|
||||
public final T22 _22;
|
||||
|
||||
public Tuple22(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21, T22 t22) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
_3 = t3;
|
||||
_4 = t4;
|
||||
_5 = t5;
|
||||
_6 = t6;
|
||||
_7 = t7;
|
||||
_8 = t8;
|
||||
_9 = t9;
|
||||
_10 = t10;
|
||||
_11 = t11;
|
||||
_12 = t12;
|
||||
_13 = t13;
|
||||
_14 = t14;
|
||||
_15 = t15;
|
||||
_16 = t16;
|
||||
_17 = t17;
|
||||
_18 = t18;
|
||||
_19 = t19;
|
||||
_20 = t20;
|
||||
_21 = t21;
|
||||
_22 = t22;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ", " + _3 + ", " + _4 + ", " + _5 + ", " + _6 + ", " + _7 + ", " + _8 + ", " + _9 + ", " + _10 + ", " + _11 + ", " + _12 + ", " + _13 + ", " + _14 + ", " + _15 + ", " + _16 + ", " + _17 + ", " + _18 + ", " + _19 + ", " + _20 + ", " + _21 + ", " + _22 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
public final T3 get_3() {
|
||||
return _3;
|
||||
}
|
||||
public final T4 get_4() {
|
||||
return _4;
|
||||
}
|
||||
public final T5 get_5() {
|
||||
return _5;
|
||||
}
|
||||
public final T6 get_6() {
|
||||
return _6;
|
||||
}
|
||||
public final T7 get_7() {
|
||||
return _7;
|
||||
}
|
||||
public final T8 get_8() {
|
||||
return _8;
|
||||
}
|
||||
public final T9 get_9() {
|
||||
return _9;
|
||||
}
|
||||
public final T10 get_10() {
|
||||
return _10;
|
||||
}
|
||||
public final T11 get_11() {
|
||||
return _11;
|
||||
}
|
||||
public final T12 get_12() {
|
||||
return _12;
|
||||
}
|
||||
public final T13 get_13() {
|
||||
return _13;
|
||||
}
|
||||
public final T14 get_14() {
|
||||
return _14;
|
||||
}
|
||||
public final T15 get_15() {
|
||||
return _15;
|
||||
}
|
||||
public final T16 get_16() {
|
||||
return _16;
|
||||
}
|
||||
public final T17 get_17() {
|
||||
return _17;
|
||||
}
|
||||
public final T18 get_18() {
|
||||
return _18;
|
||||
}
|
||||
public final T19 get_19() {
|
||||
return _19;
|
||||
}
|
||||
public final T20 get_20() {
|
||||
return _20;
|
||||
}
|
||||
public final T21 get_21() {
|
||||
return _21;
|
||||
}
|
||||
public final T22 get_22() {
|
||||
return _22;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple22 t = (Tuple22) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
if (_3 != null ? !_3.equals(t._3) : t._3 != null) return false;
|
||||
if (_4 != null ? !_4.equals(t._4) : t._4 != null) return false;
|
||||
if (_5 != null ? !_5.equals(t._5) : t._5 != null) return false;
|
||||
if (_6 != null ? !_6.equals(t._6) : t._6 != null) return false;
|
||||
if (_7 != null ? !_7.equals(t._7) : t._7 != null) return false;
|
||||
if (_8 != null ? !_8.equals(t._8) : t._8 != null) return false;
|
||||
if (_9 != null ? !_9.equals(t._9) : t._9 != null) return false;
|
||||
if (_10 != null ? !_10.equals(t._10) : t._10 != null) return false;
|
||||
if (_11 != null ? !_11.equals(t._11) : t._11 != null) return false;
|
||||
if (_12 != null ? !_12.equals(t._12) : t._12 != null) return false;
|
||||
if (_13 != null ? !_13.equals(t._13) : t._13 != null) return false;
|
||||
if (_14 != null ? !_14.equals(t._14) : t._14 != null) return false;
|
||||
if (_15 != null ? !_15.equals(t._15) : t._15 != null) return false;
|
||||
if (_16 != null ? !_16.equals(t._16) : t._16 != null) return false;
|
||||
if (_17 != null ? !_17.equals(t._17) : t._17 != null) return false;
|
||||
if (_18 != null ? !_18.equals(t._18) : t._18 != null) return false;
|
||||
if (_19 != null ? !_19.equals(t._19) : t._19 != null) return false;
|
||||
if (_20 != null ? !_20.equals(t._20) : t._20 != null) return false;
|
||||
if (_21 != null ? !_21.equals(t._21) : t._21 != null) return false;
|
||||
if (_22 != null ? !_22.equals(t._22) : t._22 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
result = 31 * result + (_3 != null ? _3.hashCode() : 0);
|
||||
result = 31 * result + (_4 != null ? _4.hashCode() : 0);
|
||||
result = 31 * result + (_5 != null ? _5.hashCode() : 0);
|
||||
result = 31 * result + (_6 != null ? _6.hashCode() : 0);
|
||||
result = 31 * result + (_7 != null ? _7.hashCode() : 0);
|
||||
result = 31 * result + (_8 != null ? _8.hashCode() : 0);
|
||||
result = 31 * result + (_9 != null ? _9.hashCode() : 0);
|
||||
result = 31 * result + (_10 != null ? _10.hashCode() : 0);
|
||||
result = 31 * result + (_11 != null ? _11.hashCode() : 0);
|
||||
result = 31 * result + (_12 != null ? _12.hashCode() : 0);
|
||||
result = 31 * result + (_13 != null ? _13.hashCode() : 0);
|
||||
result = 31 * result + (_14 != null ? _14.hashCode() : 0);
|
||||
result = 31 * result + (_15 != null ? _15.hashCode() : 0);
|
||||
result = 31 * result + (_16 != null ? _16.hashCode() : 0);
|
||||
result = 31 * result + (_17 != null ? _17.hashCode() : 0);
|
||||
result = 31 * result + (_18 != null ? _18.hashCode() : 0);
|
||||
result = 31 * result + (_19 != null ? _19.hashCode() : 0);
|
||||
result = 31 * result + (_20 != null ? _20.hashCode() : 0);
|
||||
result = 31 * result + (_21 != null ? _21.hashCode() : 0);
|
||||
result = 31 * result + (_22 != null ? _22.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple3<T1, T2, T3> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
public final T3 _3;
|
||||
|
||||
public Tuple3(T1 t1, T2 t2, T3 t3) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
_3 = t3;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ", " + _3 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
public final T3 get_3() {
|
||||
return _3;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple3 t = (Tuple3) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
if (_3 != null ? !_3.equals(t._3) : t._3 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
result = 31 * result + (_3 != null ? _3.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple4<T1, T2, T3, T4> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
public final T3 _3;
|
||||
public final T4 _4;
|
||||
|
||||
public Tuple4(T1 t1, T2 t2, T3 t3, T4 t4) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
_3 = t3;
|
||||
_4 = t4;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ", " + _3 + ", " + _4 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
public final T3 get_3() {
|
||||
return _3;
|
||||
}
|
||||
public final T4 get_4() {
|
||||
return _4;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple4 t = (Tuple4) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
if (_3 != null ? !_3.equals(t._3) : t._3 != null) return false;
|
||||
if (_4 != null ? !_4.equals(t._4) : t._4 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
result = 31 * result + (_3 != null ? _3.hashCode() : 0);
|
||||
result = 31 * result + (_4 != null ? _4.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple5<T1, T2, T3, T4, T5> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
public final T3 _3;
|
||||
public final T4 _4;
|
||||
public final T5 _5;
|
||||
|
||||
public Tuple5(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
_3 = t3;
|
||||
_4 = t4;
|
||||
_5 = t5;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ", " + _3 + ", " + _4 + ", " + _5 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
public final T3 get_3() {
|
||||
return _3;
|
||||
}
|
||||
public final T4 get_4() {
|
||||
return _4;
|
||||
}
|
||||
public final T5 get_5() {
|
||||
return _5;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple5 t = (Tuple5) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
if (_3 != null ? !_3.equals(t._3) : t._3 != null) return false;
|
||||
if (_4 != null ? !_4.equals(t._4) : t._4 != null) return false;
|
||||
if (_5 != null ? !_5.equals(t._5) : t._5 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
result = 31 * result + (_3 != null ? _3.hashCode() : 0);
|
||||
result = 31 * result + (_4 != null ? _4.hashCode() : 0);
|
||||
result = 31 * result + (_5 != null ? _5.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple6<T1, T2, T3, T4, T5, T6> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
public final T3 _3;
|
||||
public final T4 _4;
|
||||
public final T5 _5;
|
||||
public final T6 _6;
|
||||
|
||||
public Tuple6(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
_3 = t3;
|
||||
_4 = t4;
|
||||
_5 = t5;
|
||||
_6 = t6;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ", " + _3 + ", " + _4 + ", " + _5 + ", " + _6 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
public final T3 get_3() {
|
||||
return _3;
|
||||
}
|
||||
public final T4 get_4() {
|
||||
return _4;
|
||||
}
|
||||
public final T5 get_5() {
|
||||
return _5;
|
||||
}
|
||||
public final T6 get_6() {
|
||||
return _6;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple6 t = (Tuple6) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
if (_3 != null ? !_3.equals(t._3) : t._3 != null) return false;
|
||||
if (_4 != null ? !_4.equals(t._4) : t._4 != null) return false;
|
||||
if (_5 != null ? !_5.equals(t._5) : t._5 != null) return false;
|
||||
if (_6 != null ? !_6.equals(t._6) : t._6 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
result = 31 * result + (_3 != null ? _3.hashCode() : 0);
|
||||
result = 31 * result + (_4 != null ? _4.hashCode() : 0);
|
||||
result = 31 * result + (_5 != null ? _5.hashCode() : 0);
|
||||
result = 31 * result + (_6 != null ? _6.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple7<T1, T2, T3, T4, T5, T6, T7> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
public final T3 _3;
|
||||
public final T4 _4;
|
||||
public final T5 _5;
|
||||
public final T6 _6;
|
||||
public final T7 _7;
|
||||
|
||||
public Tuple7(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
_3 = t3;
|
||||
_4 = t4;
|
||||
_5 = t5;
|
||||
_6 = t6;
|
||||
_7 = t7;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ", " + _3 + ", " + _4 + ", " + _5 + ", " + _6 + ", " + _7 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
public final T3 get_3() {
|
||||
return _3;
|
||||
}
|
||||
public final T4 get_4() {
|
||||
return _4;
|
||||
}
|
||||
public final T5 get_5() {
|
||||
return _5;
|
||||
}
|
||||
public final T6 get_6() {
|
||||
return _6;
|
||||
}
|
||||
public final T7 get_7() {
|
||||
return _7;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple7 t = (Tuple7) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
if (_3 != null ? !_3.equals(t._3) : t._3 != null) return false;
|
||||
if (_4 != null ? !_4.equals(t._4) : t._4 != null) return false;
|
||||
if (_5 != null ? !_5.equals(t._5) : t._5 != null) return false;
|
||||
if (_6 != null ? !_6.equals(t._6) : t._6 != null) return false;
|
||||
if (_7 != null ? !_7.equals(t._7) : t._7 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
result = 31 * result + (_3 != null ? _3.hashCode() : 0);
|
||||
result = 31 * result + (_4 != null ? _4.hashCode() : 0);
|
||||
result = 31 * result + (_5 != null ? _5.hashCode() : 0);
|
||||
result = 31 * result + (_6 != null ? _6.hashCode() : 0);
|
||||
result = 31 * result + (_7 != null ? _7.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple8<T1, T2, T3, T4, T5, T6, T7, T8> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
public final T3 _3;
|
||||
public final T4 _4;
|
||||
public final T5 _5;
|
||||
public final T6 _6;
|
||||
public final T7 _7;
|
||||
public final T8 _8;
|
||||
|
||||
public Tuple8(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
_3 = t3;
|
||||
_4 = t4;
|
||||
_5 = t5;
|
||||
_6 = t6;
|
||||
_7 = t7;
|
||||
_8 = t8;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ", " + _3 + ", " + _4 + ", " + _5 + ", " + _6 + ", " + _7 + ", " + _8 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
public final T3 get_3() {
|
||||
return _3;
|
||||
}
|
||||
public final T4 get_4() {
|
||||
return _4;
|
||||
}
|
||||
public final T5 get_5() {
|
||||
return _5;
|
||||
}
|
||||
public final T6 get_6() {
|
||||
return _6;
|
||||
}
|
||||
public final T7 get_7() {
|
||||
return _7;
|
||||
}
|
||||
public final T8 get_8() {
|
||||
return _8;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple8 t = (Tuple8) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
if (_3 != null ? !_3.equals(t._3) : t._3 != null) return false;
|
||||
if (_4 != null ? !_4.equals(t._4) : t._4 != null) return false;
|
||||
if (_5 != null ? !_5.equals(t._5) : t._5 != null) return false;
|
||||
if (_6 != null ? !_6.equals(t._6) : t._6 != null) return false;
|
||||
if (_7 != null ? !_7.equals(t._7) : t._7 != null) return false;
|
||||
if (_8 != null ? !_8.equals(t._8) : t._8 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
result = 31 * result + (_3 != null ? _3.hashCode() : 0);
|
||||
result = 31 * result + (_4 != null ? _4.hashCode() : 0);
|
||||
result = 31 * result + (_5 != null ? _5.hashCode() : 0);
|
||||
result = 31 * result + (_6 != null ? _6.hashCode() : 0);
|
||||
result = 31 * result + (_7 != null ? _7.hashCode() : 0);
|
||||
result = 31 * result + (_8 != null ? _8.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class Tuple9<T1, T2, T3, T4, T5, T6, T7, T8, T9> extends DefaultJetObject {
|
||||
public final T1 _1;
|
||||
public final T2 _2;
|
||||
public final T3 _3;
|
||||
public final T4 _4;
|
||||
public final T5 _5;
|
||||
public final T6 _6;
|
||||
public final T7 _7;
|
||||
public final T8 _8;
|
||||
public final T9 _9;
|
||||
|
||||
public Tuple9(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9) {
|
||||
_1 = t1;
|
||||
_2 = t2;
|
||||
_3 = t3;
|
||||
_4 = t4;
|
||||
_5 = t5;
|
||||
_6 = t6;
|
||||
_7 = t7;
|
||||
_8 = t8;
|
||||
_9 = t9;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + _1 + ", " + _2 + ", " + _3 + ", " + _4 + ", " + _5 + ", " + _6 + ", " + _7 + ", " + _8 + ", " + _9 + ")";
|
||||
}
|
||||
public final T1 get_1() {
|
||||
return _1;
|
||||
}
|
||||
public final T2 get_2() {
|
||||
return _2;
|
||||
}
|
||||
public final T3 get_3() {
|
||||
return _3;
|
||||
}
|
||||
public final T4 get_4() {
|
||||
return _4;
|
||||
}
|
||||
public final T5 get_5() {
|
||||
return _5;
|
||||
}
|
||||
public final T6 get_6() {
|
||||
return _6;
|
||||
}
|
||||
public final T7 get_7() {
|
||||
return _7;
|
||||
}
|
||||
public final T8 get_8() {
|
||||
return _8;
|
||||
}
|
||||
public final T9 get_9() {
|
||||
return _9;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Tuple9 t = (Tuple9) o;
|
||||
if (_1 != null ? !_1.equals(t._1) : t._1 != null) return false;
|
||||
if (_2 != null ? !_2.equals(t._2) : t._2 != null) return false;
|
||||
if (_3 != null ? !_3.equals(t._3) : t._3 != null) return false;
|
||||
if (_4 != null ? !_4.equals(t._4) : t._4 != null) return false;
|
||||
if (_5 != null ? !_5.equals(t._5) : t._5 != null) return false;
|
||||
if (_6 != null ? !_6.equals(t._6) : t._6 != null) return false;
|
||||
if (_7 != null ? !_7.equals(t._7) : t._7 != null) return false;
|
||||
if (_8 != null ? !_8.equals(t._8) : t._8 != null) return false;
|
||||
if (_9 != null ? !_9.equals(t._9) : t._9 != null) return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = _1 != null ? _1.hashCode() : 0;
|
||||
result = 31 * result + (_2 != null ? _2.hashCode() : 0);
|
||||
result = 31 * result + (_3 != null ? _3.hashCode() : 0);
|
||||
result = 31 * result + (_4 != null ? _4.hashCode() : 0);
|
||||
result = 31 * result + (_5 != null ? _5.hashCode() : 0);
|
||||
result = 31 * result + (_6 != null ? _6.hashCode() : 0);
|
||||
result = 31 * result + (_7 != null ? _7.hashCode() : 0);
|
||||
result = 31 * result + (_8 != null ? _8.hashCode() : 0);
|
||||
result = 31 * result + (_9 != null ? _9.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
/**
|
||||
* @author yole
|
||||
*/
|
||||
public class TypeCastException extends ClassCastException {
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @author max
|
||||
*/
|
||||
package jet.modules;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class AllModules {
|
||||
|
||||
public static final ThreadLocal<ArrayList<Module>> modules = new ThreadLocal<ArrayList<Module>>() {
|
||||
@Override
|
||||
protected ArrayList<Module> initialValue() {
|
||||
return new ArrayList<Module>();
|
||||
}
|
||||
};
|
||||
|
||||
private AllModules() {
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user