Unnamed: 0
int64 0
305k
| body
stringlengths 7
52.9k
| name
stringlengths 1
185
|
|---|---|---|
10,900
|
boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCodeWithGenericsOnInnersInInterfaces.Inner)) return false; final EqualsAndHashCodeWithGenericsOnInnersInInterfaces.Inner<?> other = (EqualsAndHashCodeWithGenericsOnInnersInInterfaces.Inner<?>) o; if (!other.canEqual((Object) this)) return false; if (this.x != other.x) return false; return true; }
|
equals
|
10,901
|
boolean (final Object other) { return other instanceof EqualsAndHashCodeWithGenericsOnInnersInInterfaces.Inner; }
|
canEqual
|
10,902
|
int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.x; return result; }
|
hashCode
|
10,903
|
boolean (Object o, Object o2) { return o.equals(o2); }
|
equals
|
10,904
|
int (Float someFloat) { return Objects.hash(someFloat); }
|
hashCode
|
10,905
|
boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCodeWithNamedExistingMethods)) return false; final EqualsAndHashCodeWithNamedExistingMethods other = (EqualsAndHashCodeWithNamedExistingMethods) o; if (!other.canEqual((Object) this)) return false; if (this.someInt != other.someInt) return false; final Object this$someInteger = this.someInteger; final Object other$someInteger = other.someInteger; if (this$someInteger == null ? other$someInteger != null : !this$someInteger.equals(other$someInteger)) return false; return true; }
|
equals
|
10,906
|
boolean (final Object other) { return other instanceof EqualsAndHashCodeWithNamedExistingMethods; }
|
canEqual
|
10,907
|
int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.someInt; final Object $someInteger = this.someInteger; result = result * PRIME + ($someInteger == null ? 43 : $someInteger.hashCode()); return result; }
|
hashCode
|
10,908
|
boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCodeNewStyle)) return false; final EqualsAndHashCodeNewStyle other = (EqualsAndHashCodeNewStyle) o; if (!other.canEqual((Object) this)) return false; if (this.b != other.b) return false; if (Double.compare(this.c, other.c) != 0) return false; if (this.d != other.d) return false; if (this.f() != other.f()) return false; if (this.i() != other.i()) return false; return true; }
|
equals
|
10,909
|
boolean (final Object other) { return other instanceof EqualsAndHashCodeNewStyle; }
|
canEqual
|
10,910
|
int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.b; final long $c = Double.doubleToLongBits(this.c); result = result * PRIME + (int) ($c >>> 32 ^ $c); result = result * PRIME + this.d; result = result * PRIME + this.f(); final long $$i = this.i(); result = result * PRIME + (int) ($$i >>> 32 ^ $$i); return result; }
|
hashCode
|
10,911
|
boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCode)) return false; final EqualsAndHashCode other = (EqualsAndHashCode) o; if (!other.canEqual((java.lang.Object) this)) return false; if (this.x != other.x) return false; if (!java.util.Arrays.deepEquals(this.z, other.z)) return false; return true; }
|
equals
|
10,912
|
boolean (final java.lang.Object other) { return other instanceof EqualsAndHashCode; }
|
canEqual
|
10,913
|
int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.x; result = result * PRIME + java.util.Arrays.deepHashCode(this.z); return result; }
|
hashCode
|
10,914
|
int () { return 42; }
|
hashCode
|
10,915
|
String () { return "EqualsAndHashCodeWithSomeExistingMethods(x=" + this.x + ")"; }
|
toString
|
10,916
|
boolean (Object other) { return false; }
|
canEqual
|
10,917
|
boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCodeWithSomeExistingMethods2)) return false; final EqualsAndHashCodeWithSomeExistingMethods2 other = (EqualsAndHashCodeWithSomeExistingMethods2) o; if (!other.canEqual((Object) this)) return false; if (this.x != other.x) return false; return true; }
|
equals
|
10,918
|
int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.x; return result; }
|
hashCode
|
10,919
|
String () { return "EqualsAndHashCodeWithSomeExistingMethods2(x=" + this.x + ")"; }
|
toString
|
10,920
|
int () { return 42; }
|
hashCode
|
10,921
|
boolean (Object other) { return false; }
|
equals
|
10,922
|
String () { return "EqualsAndHashCodeWithAllExistingMethods(x=" + this.x + ")"; }
|
toString
|
10,923
|
boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCodeWithNoExistingMethods)) return false; final EqualsAndHashCodeWithNoExistingMethods other = (EqualsAndHashCodeWithNoExistingMethods) o; if (!other.canEqual((Object) this)) return false; if (this.x != other.x) return false; return true; }
|
equals
|
10,924
|
boolean (final Object other) { return other instanceof EqualsAndHashCodeWithNoExistingMethods; }
|
canEqual
|
10,925
|
int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.x; return result; }
|
hashCode
|
10,926
|
String () { return "EqualsAndHashCodeWithNoExistingMethods(x=" + this.x + ")"; }
|
toString
|
10,927
|
boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCodeNestedShadow.Bar.Foo)) return false; final EqualsAndHashCodeNestedShadow.Bar.Foo other = (EqualsAndHashCodeNestedShadow.Bar.Foo) o; if (!other.canEqual((Object) this)) return false; return true; }
|
equals
|
10,928
|
boolean (final Object other) { return other instanceof EqualsAndHashCodeNestedShadow.Bar.Foo; }
|
canEqual
|
10,929
|
int () { int result = 1; return result; }
|
hashCode
|
10,930
|
boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCodeNestedShadow.Baz.Foo)) return false; final EqualsAndHashCodeNestedShadow.Baz.Foo<?> other = (EqualsAndHashCodeNestedShadow.Baz.Foo<?>) o; if (!other.canEqual((Object) this)) return false; return true; }
|
equals
|
10,931
|
boolean (final Object other) { return other instanceof EqualsAndHashCodeNestedShadow.Baz.Foo; }
|
canEqual
|
10,932
|
int () { int result = 1; return result; }
|
hashCode
|
10,933
|
boolean (@Nullable final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCodeWithOnParam)) return false; final EqualsAndHashCodeWithOnParam other = (EqualsAndHashCodeWithOnParam) o; if (!other.canEqual((Object) this)) return false; if (this.x != other.x) return false; if (!java.util.Arrays.equals(this.y, other.y)) return false; if (!java.util.Arrays.deepEquals(this.z, other.z)) return false; final Object this$a = this.a; final Object other$a = other.a; if (this$a == null ? other$a != null : !this$a.equals(other$a)) return false; final Object this$b = this.b; final Object other$b = other.b; if (this$b == null ? other$b != null : !this$b.equals(other$b)) return false; return true; }
|
equals
|
10,934
|
boolean (@Nullable final Object other) { return other instanceof EqualsAndHashCodeWithOnParam; }
|
canEqual
|
10,935
|
int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.x; result = result * PRIME + java.util.Arrays.hashCode(this.y); result = result * PRIME + java.util.Arrays.deepHashCode(this.z); final Object $a = this.a; result = result * PRIME + ($a == null ? 43 : $a.hashCode()); final Object $b = this.b; result = result * PRIME + ($b == null ? 43 : $b.hashCode()); return result; }
|
hashCode
|
10,936
|
int () { return 42; }
|
hashCode
|
10,937
|
boolean (Object other) { return false; }
|
equals
|
10,938
|
boolean (Object other) { return true; }
|
canEqual
|
10,939
|
boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCodeWithExistingMethods3)) return false; final EqualsAndHashCodeWithExistingMethods3 other = (EqualsAndHashCodeWithExistingMethods3) o; if (!other.canEqual((Object) this)) return false; if (!super.equals(o)) return false; if (this.x != other.x) return false; return true; }
|
equals
|
10,940
|
int () { final int PRIME = 59; int result = super.hashCode(); result = result * PRIME + this.x; return result; }
|
hashCode
|
10,941
|
boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCodeOf)) return false; final EqualsAndHashCodeOf other = (EqualsAndHashCodeOf) o; if (this.x != other.x) return false; return true; }
|
equals
|
10,942
|
int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.x; return result; }
|
hashCode
|
10,943
|
boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCodeExclude)) return false; final EqualsAndHashCodeExclude other = (EqualsAndHashCodeExclude) o; if (this.x != other.x) return false; return true; }
|
equals
|
10,944
|
int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.x; return result; }
|
hashCode
|
10,945
|
int (int in) { return in + CONSTANT; }
|
addSomething
|
10,946
|
WithWithTypeAnnos (@TA final List<String> foo) { return this.foo == foo ? this : new WithWithTypeAnnos(foo); }
|
withFoo
|
10,947
|
void (String[] args) { WithAndBuilderDefaultOnFieldAndValueOnClass build = builder().field1("1").field2(List.of("2")).build(); WithAndBuilderDefaultOnFieldAndValueOnClass field2 = build.withField2(List.of("3")); System.out.println(field2); }
|
main
|
10,948
|
String () { return this.field1; }
|
getField1
|
10,949
|
List<String> () { return this.field2; }
|
getField2
|
10,950
|
boolean (Object o) { if (o == this) { return true; } else if (!(o instanceof WithAndBuilderDefaultOnFieldAndValueOnClass)) { return false; } else { WithAndBuilderDefaultOnFieldAndValueOnClass other = (WithAndBuilderDefaultOnFieldAndValueOnClass)o; Object this$field1 = this.getField1(); Object other$field1 = other.getField1(); if (this$field1 == null) { if (other$field1 != null) { return false; } } else if (!this$field1.equals(other$field1)) { return false; } Object this$field2 = this.getField2(); Object other$field2 = other.getField2(); if (this$field2 == null) { if (other$field2 != null) { return false; } } else if (!this$field2.equals(other$field2)) { return false; } return true; } }
|
equals
|
10,951
|
int () { int PRIME = true; int result = 1; Object $field1 = this.getField1(); int result = result * 59 + ($field1 == null ? 43 : $field1.hashCode()); Object $field2 = this.getField2(); result = result * 59 + ($field2 == null ? 43 : $field2.hashCode()); return result; }
|
hashCode
|
10,952
|
String () { String var10000 = this.getField1(); return "WithAndBuilderDefaultOnFieldAndValueOnClass(field1=" + var10000 + ", field2=" + this.getField2() + ")"; }
|
toString
|
10,953
|
WithAndBuilderDefaultOnFieldAndValueOnClass (List<String> field2) { return this.field2 == field2 ? this : new WithAndBuilderDefaultOnFieldAndValueOnClass(this.field1, field2); }
|
withField2
|
10,954
|
WithAndBuilderDefaultOnFieldAndValueOnClass () { List<String> field2$value = this.field2$value; if (!this.field2$set) { field2$value = WithAndBuilderDefaultOnFieldAndValueOnClass.$default$field2(); } return new WithAndBuilderDefaultOnFieldAndValueOnClass(this.field1, field2$value); }
|
build
|
10,955
|
String () { return "WithAndBuilderDefaultOnFieldAndValueOnClass.WithAndBuilderDefaultOnFieldAndValueOnClassBuilder(field1=" + this.field1 + ", field2$value=" + this.field2$value + ")"; }
|
toString
|
10,956
|
WithOnClass1 (final boolean isPublic) { return this.isPublic == isPublic ? this : new WithOnClass1(this.isNone, isPublic); }
|
withPublic
|
10,957
|
WithOnClass2 (final boolean isProtected) { return this.isProtected == isProtected ? this : new WithOnClass2(this.isNone, isProtected, this.isPackage); }
|
withProtected
|
10,958
|
WithOnClass3 (final String couldBeNull) { return this.couldBeNull == couldBeNull ? this : new WithOnClass3(couldBeNull, this.nonNull); }
|
withCouldBeNull
|
10,959
|
WithOnClass3 (@lombok.NonNull final String nonNull) { if (nonNull == null) { throw new java.lang.NullPointerException("nonNull is marked non-null but is null"); } return this.nonNull == nonNull ? this : new WithOnClass3(this.couldBeNull, nonNull); }
|
withNonNull
|
10,960
|
WithOnClass4 (final int fY) { return this.fY == fY ? this : new WithOnClass4(fY); }
|
withY
|
10,961
|
WitherAccessLevel (final boolean isPrivate) { return this.isPrivate == isPrivate ? this : new WitherAccessLevel(this.isNone, isPrivate, this.isPackage, this.isProtected, this.isPublic, this.value); }
|
withPrivate
|
10,962
|
WitherAccessLevel (final boolean isProtected) { return this.isProtected == isProtected ? this : new WitherAccessLevel(this.isNone, this.isPrivate, this.isPackage, isProtected, this.isPublic, this.value); }
|
withProtected
|
10,963
|
WitherAccessLevel (final boolean isPublic) { return this.isPublic == isPublic ? this : new WitherAccessLevel(this.isNone, this.isPrivate, this.isPackage, this.isProtected, isPublic, this.value); }
|
withPublic
|
10,964
|
WitherAccessLevel (final boolean value) { return this.value == value ? this : new WitherAccessLevel(this.isNone, this.isPrivate, this.isPackage, this.isProtected, this.isPublic, value); }
|
withValue
|
10,965
|
WithMethodMarkedDeprecated (final int annotation) { return this.annotation == annotation ? this : new WithMethodMarkedDeprecated(annotation, this.javadoc); }
|
withAnnotation
|
10,966
|
WithMethodMarkedDeprecated (final int javadoc) { return this.javadoc == javadoc ? this : new WithMethodMarkedDeprecated(this.annotation, javadoc); }
|
withJavadoc
|
10,967
|
With5 (final String foo) { return this.foo == foo ? this : new With5(foo); }
|
withFoo
|
10,968
|
With6 (final String foo) { return this.foo == foo ? this : new With6(foo); }
|
withFoo
|
10,969
|
WitherLegacyStar (final int i) { return this.i == i ? this : new WitherLegacyStar(i); }
|
withI
|
10,970
|
WithPlain (final int i) { return this.i == i ? this : new WithPlain(i, this.foo); }
|
withI
|
10,971
|
WithPlain (final int foo) { return this.foo == foo ? this : new WithPlain(this.i, foo); }
|
withFoo
|
10,972
|
B (final A field1) { this.field1 = field1; return self(); }
|
field1
|
10,973
|
B (final String item) { if (this.items == null) this.items = new java.util.ArrayList<String>(); this.items.add(item); return self(); }
|
item
|
10,974
|
B (final java.util.Collection<? extends String> items) { if (items == null) { throw new java.lang.NullPointerException("items cannot be null"); } if (this.items == null) this.items = new java.util.ArrayList<String>(); this.items.addAll(items); return self(); }
|
items
|
10,975
|
B () { if (this.items != null) this.items.clear(); return self(); }
|
clearItems
|
10,976
|
B (final double field3) { this.field3 = field3; return self(); }
|
field3
|
10,977
|
void () { Child<Integer> x = Child.<Integer>builder().field3(0.0).field1(5).item("").build(); }
|
test
|
10,978
|
int () { return 2; }
|
method
|
10,979
|
String (Parent instance) { return "staticMethod"; }
|
staticMethod
|
10,980
|
B (final int field1) { this.field1 = field1; return self(); }
|
field1
|
10,981
|
B (final int obtainViaField) { this.obtainViaField = obtainViaField; return self(); }
|
obtainViaField
|
10,982
|
B (final int obtainViaMethod) { this.obtainViaMethod = obtainViaMethod; return self(); }
|
obtainViaMethod
|
10,983
|
B (final String obtainViaStaticMethod) { this.obtainViaStaticMethod = obtainViaStaticMethod; return self(); }
|
obtainViaStaticMethod
|
10,984
|
B (final String item) { if (this.items == null) this.items = new java.util.ArrayList<String>(); this.items.add(item); return self(); }
|
item
|
10,985
|
B (final java.util.Collection<? extends String> items) { if (items == null) { throw new java.lang.NullPointerException("items cannot be null"); } if (this.items == null) this.items = new java.util.ArrayList<String>(); this.items.addAll(items); return self(); }
|
items
|
10,986
|
B () { if (this.items != null) this.items.clear(); return self(); }
|
clearItems
|
10,987
|
B (final double field3) { this.field3 = field3; return self(); }
|
field3
|
10,988
|
void () { Child x = Child.builder().field3(0.0).field1(5).item("").build().toBuilder().build(); }
|
test
|
10,989
|
B (final A field1) { this.field1 = field1; return self(); }
|
field1
|
10,990
|
B (final String item) { if (this.items == null) this.items = new java.util.ArrayList<String>(); this.items.add(item); return self(); }
|
item
|
10,991
|
B (final java.util.Collection<? extends String> items) { if (items == null) { throw new java.lang.NullPointerException("items cannot be null"); } if (this.items == null) this.items = new java.util.ArrayList<String>(); this.items.addAll(items); return self(); }
|
items
|
10,992
|
B () { if (this.items != null) this.items.clear(); return self(); }
|
clearItems
|
10,993
|
B (final A field3) { this.field3 = field3; return self(); }
|
field3
|
10,994
|
void () { Child<Integer> x = Child.<Integer>builder2().field3(1).field1("value").item("").build(); }
|
test
|
10,995
|
B (final int parentField) { this.parentField = parentField; return self(); }
|
parentField
|
10,996
|
B (final double childField) { this.childField = childField; return self(); }
|
childField
|
10,997
|
B (final String grandChildField) { this.grandChildField = grandChildField; return self(); }
|
grandChildField
|
10,998
|
void () { GrandChild x = GrandChild.builder().grandChildField("").parentField(5).childField(2.5).build(); }
|
test
|
10,999
|
B (@MyAnnotation @NonNull final String foo) { if (foo == null) { throw new java.lang.NullPointerException("foo is marked non-null but is null"); } if (this.foos == null) this.foos = new java.util.ArrayList<@MyAnnotation @NonNull String>(); this.foos.add(foo); return self(); }
|
foo
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.