Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
10,600 | BuilderWithTolerateBuilder (String s) { return this.value(Integer.parseInt(s)); } | value |
10,601 | BuilderWithTolerate () { return new BuilderWithTolerate(this.value); } | build |
10,602 | MultipleMethodBuilderWithExistedClass (long id) { return new MultipleMethodBuilderWithExistedClass(id, ""); } | builderB |
10,603 | MultipleMethodBuilderWithExistedClass (String name) { return new MultipleMethodBuilderWithExistedClass(0L, name); } | builderA |
10,604 | MultipleMethodBuilderWithExistedClass () { return MultipleMethodBuilderWithExistedClass.builderA(this.name); } | build |
10,605 | MultipleMethodBuilderWithExistedClass () { return MultipleMethodBuilderWithExistedClass.builderB(this.id); } | build |
10,606 | BuilderExampleCustomized () { return new BuilderExampleCustomized(this.name, this.age); } | execute |
10,607 | BuilderSimpleProtected<T> () { return new BuilderSimpleProtected<T>(this.also); } | build |
10,608 | BuilderExample () { return new BuilderExample(this.name, this.age); } | build |
10,609 | BuilderWithAccessors () { return new BuilderWithAccessors(this.plower, this.upper, this.foo, this._bar); } | build |
10,610 | BuilderSingularSetsWithSetterPrefix<T> () { java.util.Set<T> dangerMice; switch (this.dangerMice == null ? 0 : this.dangerMice.size()) { case 0: dangerMice = java.util.Collections.emptySet(); break; case 1: dangerMice = java.util.Collections.singleton(this.dangerMice.get(0)); break; default: dangerMice = new java.util.LinkedHashSet<T>(this.dangerMice.size() < 1073741824 ? 1 + this.dangerMice.size() + (this.dangerMice.size() - 3) / 3 : java.lang.Integer.MAX_VALUE); dangerMice.addAll(this.dangerMice); dangerMice = java.util.Collections.unmodifiableSet(dangerMice); } java.util.SortedSet<Number> octopodes = new java.util.TreeSet<Number>(); if (this.octopodes != null) octopodes.addAll(this.octopodes); octopodes = java.util.Collections.unmodifiableSortedSet(octopodes); java.util.Set<java.lang.Object> rawSet; switch (this.rawSet == null ? 0 : this.rawSet.size()) { case 0: rawSet = java.util.Collections.emptySet(); break; case 1: rawSet = java.util.Collections.singleton(this.rawSet.get(0)); break; default: rawSet = new java.util.LinkedHashSet<java.lang.Object>(this.rawSet.size() < 1073741824 ? 1 + this.rawSet.size() + (this.rawSet.size() - 3) / 3 : java.lang.Integer.MAX_VALUE); rawSet.addAll(this.rawSet); rawSet = java.util.Collections.unmodifiableSet(rawSet); } java.util.Set<String> stringSet; switch (this.stringSet == null ? 0 : this.stringSet.size()) { case 0: stringSet = java.util.Collections.emptySet(); break; case 1: stringSet = java.util.Collections.singleton(this.stringSet.get(0)); break; default: stringSet = new java.util.LinkedHashSet<String>(this.stringSet.size() < 1073741824 ? 1 + this.stringSet.size() + (this.stringSet.size() - 3) / 3 : java.lang.Integer.MAX_VALUE); stringSet.addAll(this.stringSet); stringSet = java.util.Collections.unmodifiableSet(stringSet); } return new BuilderSingularSetsWithSetterPrefix<T>(dangerMice, octopodes, rawSet, stringSet); } | build |
10,611 | BuilderSimple<T> () { return new BuilderSimple<T>(this.yes, this.also); } | build |
10,612 | BuilderSingularLists<T> () { java.util.List<T> children; switch (this.children == null ? 0 : this.children.size()) { case 0: children = java.util.Collections.emptyList(); break; case 1: children = java.util.Collections.singletonList(this.children.get(0)); break; default: children = java.util.Collections.unmodifiableList(new java.util.ArrayList<T>(this.children)); } java.util.Collection<Number> scarves; switch (this.scarves == null ? 0 : this.scarves.size()) { case 0: scarves = java.util.Collections.emptyList(); break; case 1: scarves = java.util.Collections.singletonList(this.scarves.get(0)); break; default: scarves = java.util.Collections.unmodifiableList(new java.util.ArrayList<Number>(this.scarves)); } java.util.List<java.lang.Object> rawList; switch (this.rawList == null ? 0 : this.rawList.size()) { case 0: rawList = java.util.Collections.emptyList(); break; case 1: rawList = java.util.Collections.singletonList(this.rawList.get(0)); break; default: rawList = java.util.Collections.unmodifiableList(new java.util.ArrayList<java.lang.Object>(this.rawList)); } return new BuilderSingularLists<T>(children, scarves, rawList); } | build |
10,613 | BuilderWithNoBuilderMethod () { return new BuilderWithNoBuilderMethod(this.a); } | build |
10,614 | void (String[] args) { try { builder().i(2).build(); } catch (Exception ignore) { } } | main |
10,615 | BuilderWithToBuilderOnConstructor<T> () { return new BuilderWithToBuilderOnConstructor<T>(this.one, this.bar); } | build |
10,616 | String (int show, final int yes, List<T> also, int $andMe) { return "" + show + yes + also + $andMe; } | create |
10,617 | String () { return BuilderInstanceMethod.this.create(this.show, this.yes, this.also, this.$andMe); } | build |
10,618 | BuilderSingularSets<T> () { java.util.Set<T> dangerMice; switch (this.dangerMice == null ? 0 : this.dangerMice.size()) { case 0: dangerMice = java.util.Collections.emptySet(); break; case 1: dangerMice = java.util.Collections.singleton(this.dangerMice.get(0)); break; default: dangerMice = new java.util.LinkedHashSet<T>(this.dangerMice.size() < 1073741824 ? 1 + this.dangerMice.size() + (this.dangerMice.size() - 3) / 3 : java.lang.Integer.MAX_VALUE); dangerMice.addAll(this.dangerMice); dangerMice = java.util.Collections.unmodifiableSet(dangerMice); } java.util.SortedSet<Number> octopodes = new java.util.TreeSet<Number>(); if (this.octopodes != null) octopodes.addAll(this.octopodes); octopodes = java.util.Collections.unmodifiableSortedSet(octopodes); java.util.Set<java.lang.Object> rawSet; switch (this.rawSet == null ? 0 : this.rawSet.size()) { case 0: rawSet = java.util.Collections.emptySet(); break; case 1: rawSet = java.util.Collections.singleton(this.rawSet.get(0)); break; default: rawSet = new java.util.LinkedHashSet<java.lang.Object>(this.rawSet.size() < 1073741824 ? 1 + this.rawSet.size() + (this.rawSet.size() - 3) / 3 : java.lang.Integer.MAX_VALUE); rawSet.addAll(this.rawSet); rawSet = java.util.Collections.unmodifiableSet(rawSet); } java.util.Set<String> stringSet; switch (this.stringSet == null ? 0 : this.stringSet.size()) { case 0: stringSet = java.util.Collections.emptySet(); break; case 1: stringSet = java.util.Collections.singleton(this.stringSet.get(0)); break; default: stringSet = new java.util.LinkedHashSet<String>(this.stringSet.size() < 1073741824 ? 1 + this.stringSet.size() + (this.stringSet.size() - 3) / 3 : java.lang.Integer.MAX_VALUE); stringSet.addAll(this.stringSet); stringSet = java.util.Collections.unmodifiableSet(stringSet); } return new BuilderSingularSets<T>(dangerMice, octopodes, rawSet, stringSet); } | build |
10,619 | BuilderSingularNoAuto () { java.util.List<String> things; switch (this.things == null ? 0 : this.things.size()) { case 0: things = java.util.Collections.emptyList(); break; case 1: things = java.util.Collections.singletonList(this.things.get(0)); break; default: things = java.util.Collections.unmodifiableList(new java.util.ArrayList<String>(this.things)); } java.util.List<String> widgets; switch (this.widgets == null ? 0 : this.widgets.size()) { case 0: widgets = java.util.Collections.emptyList(); break; case 1: widgets = java.util.Collections.singletonList(this.widgets.get(0)); break; default: widgets = java.util.Collections.unmodifiableList(new java.util.ArrayList<String>(this.widgets)); } java.util.List<String> items; switch (this.items == null ? 0 : this.items.size()) { case 0: items = java.util.Collections.emptyList(); break; case 1: items = java.util.Collections.singletonList(this.items.get(0)); break; default: items = java.util.Collections.unmodifiableList(new java.util.ArrayList<String>(this.items)); } return new BuilderSingularNoAuto(things, widgets, items); } | build |
10,620 | BuilderWithToBuilder<T> () { java.util.List<T> bars; switch (this.bars == null ? 0 : this.bars.size()) { case 0: bars = java.util.Collections.emptyList(); break; case 1: bars = java.util.Collections.singletonList(this.bars.get(0)); break; default: bars = java.util.Collections.unmodifiableList(new java.util.ArrayList<T>(this.bars)); } return new BuilderWithToBuilder<T>(this.one, this.two, this.foo, bars); } | build |
10,621 | ConstructorWithToBuilder<T> () { return new ConstructorWithToBuilder<T>(this.mOne, this.bar); } | build |
10,622 | BuilderWithAccessorsWithSetterPrefix () { return new BuilderWithAccessorsWithSetterPrefix(this.plower, this.upper, this.foo, this._bar); } | build |
10,623 | void (boolean arg) { } | arg2 |
10,624 | BuilderAndValue () { return new BuilderAndValue(); } | build |
10,625 | int () { return this.zero; } | getZero |
10,626 | boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof BuilderAndValue)) return false; final BuilderAndValue other = (BuilderAndValue) o; if (this.getZero() != other.getZero()) return false; return true; } | equals |
10,627 | int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.getZero(); return result; } | hashCode |
10,628 | BuilderAndData () { return new BuilderAndData(); } | build |
10,629 | int () { return this.zero; } | getZero |
10,630 | boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof BuilderAndData)) return false; final BuilderAndData other = (BuilderAndData) o; if (!other.canEqual((java.lang.Object) this)) return false; if (this.getZero() != other.getZero()) return false; return true; } | equals |
10,631 | boolean (final java.lang.Object other) { return other instanceof BuilderAndData; } | canEqual |
10,632 | int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.getZero(); return result; } | hashCode |
10,633 | BuilderWithDeprecatedField () { java.util.List<String> xyzs; switch (this.xyzs == null ? 0 : this.xyzs.size()) { case 0: xyzs = java.util.Collections.emptyList(); break; case 1: xyzs = java.util.Collections.singletonList(this.xyzs.get(0)); break; default: xyzs = java.util.Collections.unmodifiableList(new java.util.ArrayList<String>(this.xyzs)); } return new BuilderWithDeprecatedField(this.bar, this.foo, xyzs); } | build |
10,634 | BuilderWithBuilderClassName () { return new BuilderWithBuilderClassName(this.name, this.age); } | build |
10,635 | String () { return this.name; } | getName |
10,636 | int () { return this.age; } | getAge |
10,637 | boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof BuilderWithBuilderClassName)) return false; final BuilderWithBuilderClassName other = (BuilderWithBuilderClassName)o; final Object this$name = this.getName(); final Object other$name = other.getName(); if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false; if (this.getAge() != other.getAge()) return false; return true; } | equals |
10,638 | int () { final int PRIME = 59; int result = 1; final Object $name = this.getName(); result = result * PRIME + ($name == null ? 43 : $name.hashCode()); result = result * PRIME + this.getAge(); return result; } | hashCode |
10,639 | BuilderSingularWithPrefixes () { java.util.List<String> elems; switch (this.elems == null ? 0 : this.elems.size()) { case 0: elems = java.util.Collections.emptyList(); break; case 1: elems = java.util.Collections.singletonList(this.elems.get(0)); break; default: elems = java.util.Collections.unmodifiableList(new java.util.ArrayList<String>(this.elems)); } return new BuilderSingularWithPrefixes(elems); } | build |
10,640 | void () { BuilderComplex.<T>testVoidWithGenerics(this.number, this.arg2, this.arg3, this.selfRef); } | execute |
10,641 | BarBar<T> () { return new BarBar<T>(this.content); } | build |
10,642 | void (String[] args) { BarBar<BigDecimal> barBar = BarBar.<BigDecimal>builder().content(BigDecimal.ONE).build(); } | main |
10,643 | void (String[] args) { System.out.println(builder().first(2).second(2.0F).build()); } | main |
10,644 | BuilderMultipleConstructorException () { return new BuilderMultipleConstructorException(this.first, this.second); } | build |
10,645 | BuilderWithFieldAccessors () { return new BuilderWithFieldAccessors(this.upper, this.foo, this.bar); } | build |
10,646 | void (String[] args) { try { builder().i(2).build(); } catch (Exception ignore) { } } | main |
10,647 | BuilderSingularGuavaListsSets<T> () { com.google.common.collect.ImmutableList<T> cards = this.cards == null ? com.google.common.collect.ImmutableList.<T>of() : this.cards.build(); com.google.common.collect.ImmutableCollection<Number> frogs = this.frogs == null ? com.google.common.collect.ImmutableList.<Number>of() : this.frogs.build(); com.google.common.collect.ImmutableSet<java.lang.Object> rawSet = this.rawSet == null ? com.google.common.collect.ImmutableSet.<java.lang.Object>of() : this.rawSet.build(); com.google.common.collect.ImmutableSortedSet<String> passes = this.passes == null ? com.google.common.collect.ImmutableSortedSet.<String>of() : this.passes.build(); com.google.common.collect.ImmutableTable<Number, Number, String> users = this.users == null ? com.google.common.collect.ImmutableTable.<Number, Number, String>of() : this.users.build(); return new BuilderSingularGuavaListsSets<T>(cards, frogs, rawSet, passes, users); } | build |
10,648 | ObjectApiResponse<T> () { return new ObjectApiResponse<T>(this.response); } | build |
10,649 | K () { return this.response; } | getResponse |
10,650 | void (final K response) { this.response = response; } | setResponse |
10,651 | boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof ObjectApiResponse)) return false; final ObjectApiResponse<?> other = (ObjectApiResponse<?>) o; if (!other.canEqual((java.lang.Object) this)) return false; final java.lang.Object this$response = this.getResponse(); final java.lang.Object other$response = other.getResponse(); if (this$response == null ? other$response != null : !this$response.equals(other$response)) return false; return true; } | equals |
10,652 | boolean (final java.lang.Object other) { return other instanceof ObjectApiResponse; } | canEqual |
10,653 | int () { final int PRIME = 59; int result = 1; final java.lang.Object $response = this.getResponse(); result = result * PRIME + ($response == null ? 43 : $response.hashCode()); return result; } | hashCode |
10,654 | BuilderSingularRedirectToGuava () { java.util.Set<String> dangerMice; switch (this.dangerMice == null ? 0 : this.dangerMice.size()) { case 0: dangerMice = java.util.Collections.emptySet(); break; case 1: dangerMice = java.util.Collections.singleton(this.dangerMice.get(0)); break; default: dangerMice = new java.util.LinkedHashSet<String>(this.dangerMice.size() < 1073741824 ? 1 + this.dangerMice.size() + (this.dangerMice.size() - 3) / 3 : java.lang.Integer.MAX_VALUE); dangerMice.addAll(this.dangerMice); dangerMice = java.util.Collections.unmodifiableSet(dangerMice); } java.util.NavigableMap<Integer, Number> things = new java.util.TreeMap<Integer, Number>(); if (this.things$key != null) for (int $i = 0; $i < (this.things$key == null ? 0 : this.things$key.size()); $i++) things.put(this.things$key.get($i), (Number) this.things$value.get($i)); things = java.util.Collections.unmodifiableNavigableMap(things); java.util.Collection<Class<?>> doohickeys; switch (this.doohickeys == null ? 0 : this.doohickeys.size()) { case 0: doohickeys = java.util.Collections.emptyList(); break; case 1: doohickeys = java.util.Collections.singletonList(this.doohickeys.get(0)); break; default: doohickeys = java.util.Collections.unmodifiableList(new java.util.ArrayList<Class<?>>(this.doohickeys)); } return new BuilderSingularRedirectToGuava(dangerMice, things, doohickeys); } | build |
10,655 | record (String name) { public static PersonBuilder builder() { return new Person.PersonBuilder(); } public static class PersonBuilder { private String name; PersonBuilder() { } public PersonBuilder name(String name) { this.name = name; return this; } public Person build() { return new Person(this.name); } public String toString() { return "Person.PersonBuilder(name=" + this.name + ")"; } } } | Person |
10,656 | PersonBuilder () { return new Person.PersonBuilder(); } | builder |
10,657 | PersonBuilder (String name) { this.name = name; return this; } | name |
10,658 | Person () { return new Person(this.name); } | build |
10,659 | String () { return "Person.PersonBuilder(name=" + this.name + ")"; } | toString |
10,660 | BuilderAndAllArgsConstructor () { return new BuilderAndAllArgsConstructor(this.field1, this.field2); } | build |
10,661 | BuilderWithBuilderClassNameOnConstructor () { return new BuilderWithBuilderClassNameOnConstructor(this.name, this.age); } | build |
10,662 | String () { return this.name; } | getName |
10,663 | int () { return this.age; } | getAge |
10,664 | boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof BuilderWithBuilderClassNameOnConstructor)) return false; final BuilderWithBuilderClassNameOnConstructor other = (BuilderWithBuilderClassNameOnConstructor)o; final Object this$name = this.getName(); final Object other$name = other.getName(); if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false; if (this.getAge() != other.getAge()) return false; return true; } | equals |
10,665 | int () { final int PRIME = 59; int result = 1; final Object $name = this.getName(); result = result * PRIME + ($name == null ? 43 : $name.hashCode()); result = result * PRIME + this.getAge(); return result; } | hashCode |
10,666 | BuilderWithToBuilderOnClass<T> () { return new BuilderWithToBuilderOnClass<T>(this.one, this.two, this.foo, this.bar); } | build |
10,667 | Builder (String value) { secret = value.getBytes(); return this; } | withSecret |
10,668 | Builder (byte[] value) { secret = value; return this; } | withSecret |
10,669 | Builder (String name) { this.name = Optional.of(name); return this; } | withName |
10,670 | BuilderWithSetterPrefixAndExistedMethods () { return new BuilderWithSetterPrefixAndExistedMethods(this.secret, this.name); } | build |
10,671 | void (String[] args) { BuilderWithSetterPrefixAndExistedMethods obj = BuilderWithSetterPrefixAndExistedMethods.builder().withSecret("Secret").withName(Optional.of("aaa")).build(); BuilderWithSetterPrefixAndExistedMethods rtn = obj.toBuilder().build(); System.out.println(rtn); } | main |
10,672 | byte[] () { return this.secret; } | getSecret |
10,673 | Optional<String> () { return this.name; } | getName |
10,674 | void (final Optional<String> name) { this.name = name; } | setName |
10,675 | boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof BuilderWithSetterPrefixAndExistedMethods)) return false; final BuilderWithSetterPrefixAndExistedMethods other = (BuilderWithSetterPrefixAndExistedMethods) o; if (!other.canEqual((java.lang.Object) this)) return false; if (!java.util.Arrays.equals(this.getSecret(), other.getSecret())) 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,676 | boolean (final java.lang.Object other) { return other instanceof BuilderWithSetterPrefixAndExistedMethods; } | canEqual |
10,677 | int () { final int PRIME = 59; int result = 1; result = result * PRIME + java.util.Arrays.hashCode(this.getSecret()); final java.lang.Object $name = this.getName(); result = result * PRIME + ($name == null ? 43 : $name.hashCode()); return result; } | hashCode |
10,678 | BuilderWithDefaultInnerFieldsBuilder (Object bar) { this.bar$value = bar; this.bar$set = true; return this; } | barManual |
10,679 | BuilderWithDefaultInnerFields () { Object bar$value = this.bar$value; if (!this.bar$set) { bar$value = BuilderWithDefaultInnerFields.$default$bar(); } return new BuilderWithDefaultInnerFields(bar$value); } | build |
10,680 | void (String[] args) { } | main |
10,681 | void (String[] args) { } | main |
10,682 | void (String[] args) { } | main |
10,683 | void (String[] args) { } | main |
10,684 | SingularGuavaSet<T> () { com.google.common.collect.ImmutableSet<java.lang.Object> rawTypes = this.rawTypes == null ? com.google.common.collect.ImmutableSet.<java.lang.Object>of() : this.rawTypes.build(); com.google.common.collect.ImmutableSet<Integer> integers = this.integers == null ? com.google.common.collect.ImmutableSet.<Integer>of() : this.integers.build(); com.google.common.collect.ImmutableSet<T> generics = this.generics == null ? com.google.common.collect.ImmutableSet.<T>of() : this.generics.build(); com.google.common.collect.ImmutableSet<Number> extendsGenerics = this.extendsGenerics == null ? com.google.common.collect.ImmutableSet.<Number>of() : this.extendsGenerics.build(); return new SingularGuavaSet<T>(rawTypes, integers, generics, extendsGenerics); } | build |
10,685 | void (String[] args) { } | main |
10,686 | SingularGuavaCollection<T> () { com.google.common.collect.ImmutableCollection<java.lang.Object> rawTypes = this.rawTypes == null ? com.google.common.collect.ImmutableList.<java.lang.Object>of() : this.rawTypes.build(); com.google.common.collect.ImmutableCollection<Integer> integers = this.integers == null ? com.google.common.collect.ImmutableList.<Integer>of() : this.integers.build(); com.google.common.collect.ImmutableCollection<T> generics = this.generics == null ? com.google.common.collect.ImmutableList.<T>of() : this.generics.build(); com.google.common.collect.ImmutableCollection<Number> extendsGenerics = this.extendsGenerics == null ? com.google.common.collect.ImmutableList.<Number>of() : this.extendsGenerics.build(); return new SingularGuavaCollection<T>(rawTypes, integers, generics, extendsGenerics); } | build |
10,687 | void (String[] args) { } | main |
10,688 | void (String[] args) { } | main |
10,689 | SingularGuavaList<T> () { com.google.common.collect.ImmutableList<java.lang.Object> rawTypes = this.rawTypes == null ? com.google.common.collect.ImmutableList.<java.lang.Object>of() : this.rawTypes.build(); com.google.common.collect.ImmutableList<Integer> integers = this.integers == null ? com.google.common.collect.ImmutableList.<Integer>of() : this.integers.build(); com.google.common.collect.ImmutableList<T> generics = this.generics == null ? com.google.common.collect.ImmutableList.<T>of() : this.generics.build(); com.google.common.collect.ImmutableList<Number> extendsGenerics = this.extendsGenerics == null ? com.google.common.collect.ImmutableList.<Number>of() : this.extendsGenerics.build(); return new SingularGuavaList<T>(rawTypes, integers, generics, extendsGenerics); } | build |
10,690 | void (String[] args) { } | main |
10,691 | SingularGuavaSortedSet<T> () { com.google.common.collect.ImmutableSortedSet<java.lang.Object> rawTypes = this.rawTypes == null ? com.google.common.collect.ImmutableSortedSet.<java.lang.Object>of() : this.rawTypes.build(); com.google.common.collect.ImmutableSortedSet<Integer> integers = this.integers == null ? com.google.common.collect.ImmutableSortedSet.<Integer>of() : this.integers.build(); com.google.common.collect.ImmutableSortedSet<T> generics = this.generics == null ? com.google.common.collect.ImmutableSortedSet.<T>of() : this.generics.build(); com.google.common.collect.ImmutableSortedSet<Number> extendsGenerics = this.extendsGenerics == null ? com.google.common.collect.ImmutableSortedSet.<Number>of() : this.extendsGenerics.build(); return new SingularGuavaSortedSet<T>(rawTypes, integers, generics, extendsGenerics); } | build |
10,692 | void (String[] args) { } | main |
10,693 | void (String[] args) { } | main |
10,694 | void (String[] args) { } | main |
10,695 | SingularList<T> () { java.util.List<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.util.List<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.util.List<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.util.List<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 SingularList<T>(rawTypes, integers, generics, extendsGenerics); } | build |
10,696 | SingularNavigableSet<T> () { java.util.NavigableSet<java.lang.Object> rawTypes = new java.util.TreeSet<java.lang.Object>(); if (this.rawTypes != null) rawTypes.addAll(this.rawTypes); rawTypes = java.util.Collections.unmodifiableNavigableSet(rawTypes); java.util.NavigableSet<Integer> integers = new java.util.TreeSet<Integer>(); if (this.integers != null) integers.addAll(this.integers); integers = java.util.Collections.unmodifiableNavigableSet(integers); java.util.NavigableSet<T> generics = new java.util.TreeSet<T>(); if (this.generics != null) generics.addAll(this.generics); generics = java.util.Collections.unmodifiableNavigableSet(generics); java.util.NavigableSet<Number> extendsGenerics = new java.util.TreeSet<Number>(); if (this.extendsGenerics != null) extendsGenerics.addAll(this.extendsGenerics); extendsGenerics = java.util.Collections.unmodifiableNavigableSet(extendsGenerics); return new SingularNavigableSet<T>(rawTypes, integers, generics, extendsGenerics); } | build |
10,697 | SingularSortedSet<T> () { java.util.SortedSet<java.lang.Object> rawTypes = new java.util.TreeSet<java.lang.Object>(); if (this.rawTypes != null) rawTypes.addAll(this.rawTypes); rawTypes = java.util.Collections.unmodifiableSortedSet(rawTypes); java.util.SortedSet<Integer> integers = new java.util.TreeSet<Integer>(); if (this.integers != null) integers.addAll(this.integers); integers = java.util.Collections.unmodifiableSortedSet(integers); java.util.SortedSet<T> generics = new java.util.TreeSet<T>(); if (this.generics != null) generics.addAll(this.generics); generics = java.util.Collections.unmodifiableSortedSet(generics); java.util.SortedSet<Number> extendsGenerics = new java.util.TreeSet<Number>(); if (this.extendsGenerics != null) extendsGenerics.addAll(this.extendsGenerics); extendsGenerics = java.util.Collections.unmodifiableSortedSet(extendsGenerics); return new SingularSortedSet<T>(rawTypes, integers, generics, extendsGenerics); } | build |
10,698 | void (String[] args) { } | main |
10,699 | SingularCollection<T> () { java.util.Collection<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.util.Collection<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.util.Collection<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.util.Collection<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 SingularCollection<T>(rawTypes, integers, generics, extendsGenerics); } | build |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.