Unnamed: 0
int64 0
305k
| body
stringlengths 7
52.9k
| name
stringlengths 1
185
|
|---|---|---|
10,700
|
SingularSet<T> () { java.util.Set<java.lang.Object> rawTypes; switch (this.rawTypes == null ? 0 : this.rawTypes.size()) { case 0: rawTypes = java.util.Collections.emptySet(); break; case 1: rawTypes = java.util.Collections.singleton(this.rawTypes.get(0)); break; default: rawTypes = new java.util.LinkedHashSet<java.lang.Object>(this.rawTypes.size() < 1073741824 ? 1 + this.rawTypes.size() + (this.rawTypes.size() - 3) / 3 : java.lang.Integer.MAX_VALUE); rawTypes.addAll(this.rawTypes); rawTypes = java.util.Collections.unmodifiableSet(rawTypes); } java.util.Set<Integer> integers; switch (this.integers == null ? 0 : this.integers.size()) { case 0: integers = java.util.Collections.emptySet(); break; case 1: integers = java.util.Collections.singleton(this.integers.get(0)); break; default: integers = new java.util.LinkedHashSet<Integer>(this.integers.size() < 1073741824 ? 1 + this.integers.size() + (this.integers.size() - 3) / 3 : java.lang.Integer.MAX_VALUE); integers.addAll(this.integers); integers = java.util.Collections.unmodifiableSet(integers); } java.util.Set<T> generics; switch (this.generics == null ? 0 : this.generics.size()) { case 0: generics = java.util.Collections.emptySet(); break; case 1: generics = java.util.Collections.singleton(this.generics.get(0)); break; default: generics = new java.util.LinkedHashSet<T>(this.generics.size() < 1073741824 ? 1 + this.generics.size() + (this.generics.size() - 3) / 3 : java.lang.Integer.MAX_VALUE); generics.addAll(this.generics); generics = java.util.Collections.unmodifiableSet(generics); } java.util.Set<Number> extendsGenerics; switch (this.extendsGenerics == null ? 0 : this.extendsGenerics.size()) { case 0: extendsGenerics = java.util.Collections.emptySet(); break; case 1: extendsGenerics = java.util.Collections.singleton(this.extendsGenerics.get(0)); break; default: extendsGenerics = new java.util.LinkedHashSet<Number>(this.extendsGenerics.size() < 1073741824 ? 1 + this.extendsGenerics.size() + (this.extendsGenerics.size() - 3) / 3 : java.lang.Integer.MAX_VALUE); extendsGenerics.addAll(this.extendsGenerics); extendsGenerics = java.util.Collections.unmodifiableSet(extendsGenerics); } return new SingularSet<T>(rawTypes, integers, generics, extendsGenerics); }
|
build
|
10,701
|
SingularIterable<T> () { java.lang.Iterable<java.lang.Object> rawTypes; switch (this.rawTypes == null ? 0 : this.rawTypes.size()) { case 0: rawTypes = java.util.Collections.emptyList(); break; case 1: rawTypes = java.util.Collections.singletonList(this.rawTypes.get(0)); break; default: rawTypes = java.util.Collections.unmodifiableList(new java.util.ArrayList<java.lang.Object>(this.rawTypes)); } java.lang.Iterable<Integer> integers; switch (this.integers == null ? 0 : this.integers.size()) { case 0: integers = java.util.Collections.emptyList(); break; case 1: integers = java.util.Collections.singletonList(this.integers.get(0)); break; default: integers = java.util.Collections.unmodifiableList(new java.util.ArrayList<Integer>(this.integers)); } java.lang.Iterable<T> generics; switch (this.generics == null ? 0 : this.generics.size()) { case 0: generics = java.util.Collections.emptyList(); break; case 1: generics = java.util.Collections.singletonList(this.generics.get(0)); break; default: generics = java.util.Collections.unmodifiableList(new java.util.ArrayList<T>(this.generics)); } java.lang.Iterable<Number> extendsGenerics; switch (this.extendsGenerics == null ? 0 : this.extendsGenerics.size()) { case 0: extendsGenerics = java.util.Collections.emptyList(); break; case 1: extendsGenerics = java.util.Collections.singletonList(this.extendsGenerics.get(0)); break; default: extendsGenerics = java.util.Collections.unmodifiableList(new java.util.ArrayList<Number>(this.extendsGenerics)); } return new SingularIterable<T>(rawTypes, integers, generics, extendsGenerics); }
|
build
|
10,702
|
void (final String fTest4) { this.fTest4 = fTest4; }
|
setTest4
|
10,703
|
AccessorsOuter (final String fTest) { this.fTest = fTest; return this; }
|
setTest
|
10,704
|
AccessorsOuter (final String zTest2) { this.zTest2 = zTest2; return this; }
|
setTest2
|
10,705
|
AccessorsMakeFinal1 (final String test) { this.test = test; return this; }
|
test
|
10,706
|
String () { return this.fieldName; }
|
fieldName
|
10,707
|
AccessorsFluent (final String fieldName) { this.fieldName = fieldName; return this; }
|
fieldName
|
10,708
|
String () { return this.fieldName; }
|
fieldName
|
10,709
|
String () { return this.otherFieldWithOverride; }
|
getOtherFieldWithOverride
|
10,710
|
AccessorsFluentOnClass (final String fieldName) { this.fieldName = fieldName; return this; }
|
fieldName
|
10,711
|
AccessorsChain (final boolean isRunning) { this.isRunning = isRunning; return this; }
|
setRunning
|
10,712
|
void (final String fActualField) { this.fActualField = fActualField; }
|
setActualField
|
10,713
|
void (final String fieldName) { this.fieldName = fieldName; }
|
setFieldName
|
10,714
|
void (final String fActualField) { this.fActualField = fActualField; }
|
setActualField
|
10,715
|
String () { return fName; }
|
getName
|
10,716
|
boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof AccessorsPrefix3)) return false; final AccessorsPrefix3 other = (AccessorsPrefix3) o; if (!other.canEqual((java.lang.Object) this)) return false; final java.lang.Object this$fName = this.getName(); final java.lang.Object other$fName = other.getName(); if (this$fName == null ? other$fName != null : !this$fName.equals(other$fName)) return false; return true; }
|
equals
|
10,717
|
boolean (final java.lang.Object other) { return other instanceof AccessorsPrefix3; }
|
canEqual
|
10,718
|
int () { final int PRIME = 59; int result = 1; final java.lang.Object $fName = this.getName(); result = result * PRIME + ($fName == null ? 43 : $fName.hashCode()); return result; }
|
hashCode
|
10,719
|
AccessorsFluentGenerics<T> (final String name) { this.name = name; return this; }
|
name
|
10,720
|
void (final String name) { this.name = name; }
|
name
|
10,721
|
void (final String name) { AccessorsFluentStatic.name = name; }
|
name
|
10,722
|
JacksonJsonProperty () { return new JacksonJsonProperty(this.kebabCaseProp); }
|
build
|
10,723
|
void (final String kebabCaseProp) { this.kebabCaseProp = kebabCaseProp; }
|
setKebabCaseProp
|
10,724
|
JacksonBuilderSingular () { java.util.Map<String, Object> any; switch (this.any$key == null ? 0 : this.any$key.size()) { case 0: any = java.util.Collections.emptyMap(); break; case 1: any = java.util.Collections.singletonMap(this.any$key.get(0), this.any$value.get(0)); break; default: any = new java.util.LinkedHashMap<String, Object>(this.any$key.size() < 1073741824 ? 1 + this.any$key.size() + (this.any$key.size() - 3) / 3 : java.lang.Integer.MAX_VALUE); for (int $i = 0; $i < this.any$key.size(); $i++) any.put(this.any$key.get($i), (Object) this.any$value.get($i)); any = java.util.Collections.unmodifiableMap(any); } java.util.List<String> values; switch (this.values == null ? 0 : this.values.size()) { case 0: values = java.util.Collections.emptyList(); break; case 1: values = java.util.Collections.singletonList(this.values.get(0)); break; default: values = java.util.Collections.unmodifiableList(new java.util.ArrayList<String>(this.values)); } com.google.common.collect.ImmutableMap<String, Object> guavaAny = this.guavaAny == null ? com.google.common.collect.ImmutableMap.<String, Object>of() : this.guavaAny.build(); com.google.common.collect.ImmutableList<String> guavaValues = this.guavaValues == null ? com.google.common.collect.ImmutableList.<String>of() : this.guavaValues.build(); return new JacksonBuilderSingular(any, values, guavaAny, guavaValues); }
|
build
|
10,725
|
B (final int field1) { this.field1 = field1; return self(); }
|
field1
|
10,726
|
JacksonizedSuperBuilderWithJsonDeserialize () { return new JacksonizedSuperBuilderWithJsonDeserialize(this); }
|
build
|
10,727
|
B (final int field1) { this.field1 = field1; return self(); }
|
field1
|
10,728
|
void () { Parent x = Parent.builder().field1(5).build(); }
|
test
|
10,729
|
JacksonizedBuilderSimple<T> () { return new JacksonizedBuilderSimple<T>(this.yes, this.also); }
|
build
|
10,730
|
WitherAndAccessors (final int z) { return this.z == z ? this : new WitherAndAccessors(this.y, z); }
|
withZ
|
10,731
|
WitherDeprecated (final int annotation) { return this.annotation == annotation ? this : new WitherDeprecated(annotation, this.javadoc); }
|
withAnnotation
|
10,732
|
WitherDeprecated (final int javadoc) { return this.javadoc == javadoc ? this : new WitherDeprecated(this.annotation, javadoc); }
|
withJavadoc
|
10,733
|
Wither5 (final String foo) { return this.foo == foo ? this : new Wither5(foo); }
|
withFoo
|
10,734
|
Wither6 (final String foo) { return this.foo == foo ? this : new Wither6(foo); }
|
withFoo
|
10,735
|
WitherAccessLevel (final boolean isPrivate) { return this.isPrivate == isPrivate ? this : new WitherAccessLevel(this.isNone, isPrivate, this.isPackage, this.isProtected, this.isPublic, this.value); }
|
withPrivate
|
10,736
|
WitherAccessLevel (final boolean isProtected) { return this.isProtected == isProtected ? this : new WitherAccessLevel(this.isNone, this.isPrivate, this.isPackage, isProtected, this.isPublic, this.value); }
|
withProtected
|
10,737
|
WitherAccessLevel (final boolean isPublic) { return this.isPublic == isPublic ? this : new WitherAccessLevel(this.isNone, this.isPrivate, this.isPackage, this.isProtected, isPublic, this.value); }
|
withPublic
|
10,738
|
WitherAccessLevel (final boolean value) { return this.value == value ? this : new WitherAccessLevel(this.isNone, this.isPrivate, this.isPackage, this.isProtected, this.isPublic, value); }
|
withValue
|
10,739
|
WitherPlain (final int i) { return this.i == i ? this : new WitherPlain(i, this.foo); }
|
withI
|
10,740
|
WitherPlain (final int foo) { return this.foo == foo ? this : new WitherPlain(this.i, foo); }
|
withFoo
|
10,741
|
WitherOnClass1 (final boolean isPublic) { return this.isPublic == isPublic ? this : new WitherOnClass1(this.isNone, isPublic); }
|
withPublic
|
10,742
|
WitherOnClass2 (final boolean isProtected) { return this.isProtected == isProtected ? this : new WitherOnClass2(this.isNone, isProtected, this.isPackage); }
|
withProtected
|
10,743
|
WitherOnClass3 (final String couldBeNull) { return this.couldBeNull == couldBeNull ? this : new WitherOnClass3(couldBeNull, this.nonNull); }
|
withCouldBeNull
|
10,744
|
WitherOnClass3 (@lombok.NonNull final String nonNull) { if (nonNull == null) { throw new java.lang.NullPointerException("nonNull"); } return this.nonNull == nonNull ? this : new WitherOnClass3(this.couldBeNull, nonNull); }
|
withNonNull
|
10,745
|
WitherOnClass4 (final int fY) { return this.fY == fY ? this : new WitherOnClass4(fY); }
|
withY
|
10,746
|
void () { }
|
foo
|
10,747
|
void (java.util.ArrayList<java.lang.String> list) { }
|
bar
|
10,748
|
void (java.util.ArrayList<java.lang.String> list) { }
|
bar
|
10,749
|
void (final java.util.ArrayList<java.lang.String> list) { this.bar.bar(list); }
|
bar
|
10,750
|
void () { this.foo.foo(); }
|
foo
|
10,751
|
void () { this.inner.innerMostMethod(); }
|
innerMostMethod
|
10,752
|
void () { }
|
innerMostMethod
|
10,753
|
void (final int... varargs) { this.bar.justOneParameter(varargs); }
|
justOneParameter
|
10,754
|
void (final java.lang.String first, final int... varargs) { this.bar.multipleParameters(first, varargs); }
|
multipleParameters
|
10,755
|
void (final int[] array) { this.bar.array(array); }
|
array
|
10,756
|
void (final int[]... arrayVarargs) { this.bar.arrayVarargs(arrayVarargs); }
|
arrayVarargs
|
10,757
|
void (Object[]... keys) { }
|
varargs
|
10,758
|
void (final java.lang.Object[]... keys) { this.bar.varargs(keys); }
|
varargs
|
10,759
|
T (final T a) { return this.target.a(a); }
|
a
|
10,760
|
void () { }
|
a
|
10,761
|
void (java.util.List<String> l) { }
|
b
|
10,762
|
void (java.util.List<Integer> l, String[] a, Integer... varargs) { }
|
c
|
10,763
|
void (String[][][][] d) { }
|
d
|
10,764
|
void (T s, java.util.List<T> l, T[] a, T... varargs) { }
|
f
|
10,765
|
void (Number g) { }
|
g
|
10,766
|
Bar () { java.lang.Object value = this.bar.get(); if (value == null) { synchronized (this.bar) { value = this.bar.get(); if (value == null) { final Bar actualValue = new Bar() { public void setList(java.util.ArrayList<String> list) { } public int getInt() { return 42; } }; value = actualValue == null ? this.bar : actualValue; this.bar.set(value); } } } return (Bar) (value == this.bar ? null : value); }
|
getBar
|
10,767
|
void (java.util.ArrayList<String> list) { }
|
setList
|
10,768
|
int () { return 42; }
|
getInt
|
10,769
|
void (final java.util.ArrayList<java.lang.String> list) { this.getBar().setList(list); }
|
setList
|
10,770
|
int () { return this.getBar().getInt(); }
|
getInt
|
10,771
|
void () { this.bar.deprecatedAnnotation(); }
|
deprecatedAnnotation
|
10,772
|
void () { this.bar.deprecatedComment(); }
|
deprecatedComment
|
10,773
|
void () { this.bar.notDeprecated(); }
|
notDeprecated
|
10,774
|
void (final java.util.ArrayList<java.lang.String> list) { this.bar.setList(list); }
|
setList
|
10,775
|
int () { return this.bar.getInt(); }
|
getInt
|
10,776
|
void (final java.util.ArrayList<java.lang.String> list) { this.getBar().bar(list); }
|
bar
|
10,777
|
void (String[] args) { ValueWithGeneric176<String> valueObject = ValueWithGeneric176.of("thing1", 10); System.out.println(valueObject); }
|
main
|
10,778
|
T () { return this.name; }
|
getName
|
10,779
|
int () { return this.count; }
|
getCount
|
10,780
|
boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof ValueWithGeneric176)) return false; final ValueWithGeneric176<?> other = (ValueWithGeneric176<?>) o; final java.lang.Object this$name = this.getName(); final java.lang.Object other$name = other.getName(); if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false; if (this.getCount() != other.getCount()) return false; return true; }
|
equals
|
10,781
|
int () { final int PRIME = 59; int result = 1; final java.lang.Object $name = this.getName(); result = result * PRIME + ($name == null ? 43 : $name.hashCode()); result = result * PRIME + this.getCount(); return result; }
|
hashCode
|
10,782
|
void (String[] args) { final ValueWithPackagePrivate test = new ValueWithPackagePrivate(1, 2, 3, 4, 5, 6, 7); System.out.println(test); }
|
main
|
10,783
|
int () { return this.privateInt; }
|
getPrivateInt
|
10,784
|
int () { return this.protectedInt; }
|
getProtectedInt
|
10,785
|
int () { return this.publicInt; }
|
getPublicInt
|
10,786
|
int () { return this.anInt; }
|
getAnInt
|
10,787
|
int () { return this.annotatedInt; }
|
getAnnotatedInt
|
10,788
|
int () { return this.nonFinalInt; }
|
getNonFinalInt
|
10,789
|
int () { return this.shouldBePublicInt; }
|
getShouldBePublicInt
|
10,790
|
boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof ValueWithPackagePrivate)) return false; final ValueWithPackagePrivate other = (ValueWithPackagePrivate) o; if (this.getPrivateInt() != other.getPrivateInt()) return false; if (this.getProtectedInt() != other.getProtectedInt()) return false; if (this.getPublicInt() != other.getPublicInt()) return false; if (this.getAnInt() != other.getAnInt()) return false; if (this.getAnnotatedInt() != other.getAnnotatedInt()) return false; if (this.getNonFinalInt() != other.getNonFinalInt()) return false; if (this.getShouldBePublicInt() != other.getShouldBePublicInt()) return false; return true; }
|
equals
|
10,791
|
int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.getPrivateInt(); result = result * PRIME + this.getProtectedInt(); result = result * PRIME + this.getPublicInt(); result = result * PRIME + this.getAnInt(); result = result * PRIME + this.getAnnotatedInt(); result = result * PRIME + this.getNonFinalInt(); result = result * PRIME + this.getShouldBePublicInt(); return result; }
|
hashCode
|
10,792
|
int () { return this.x; }
|
getX
|
10,793
|
String () { return this.name; }
|
getName
|
10,794
|
boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof Value1)) return false; final Value1 other = (Value1) o; if (this.getX() != other.getX()) return false; final java.lang.Object this$name = this.getName(); final java.lang.Object other$name = other.getName(); if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false; return true; }
|
equals
|
10,795
|
int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.getX(); final java.lang.Object $name = this.getName(); result = result * PRIME + ($name == null ? 43 : $name.hashCode()); return result; }
|
hashCode
|
10,796
|
int () { return this.x; }
|
getX
|
10,797
|
String () { return this.name; }
|
getName
|
10,798
|
boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof Value2)) return false; final Value2 other = (Value2) o; if (!other.canEqual((java.lang.Object) this)) return false; if (this.getX() != other.getX()) return false; final java.lang.Object this$name = this.getName(); final java.lang.Object other$name = other.getName(); if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false; return true; }
|
equals
|
10,799
|
boolean (final java.lang.Object other) { return other instanceof Value2; }
|
canEqual
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.