Get a build by the given buildNumber.

@param buildNumber The number to select the build by.
@return The an Optional with the {@link Build} selected by the given buildnumber
194386
public Optional<Build> getBuildByNumber(final int buildNumber) {
        return builds.stream().filter(isBuildNumberEqualTo(buildNumber)).findFirst();
    }
944596
@Nonnull
	public static <T, R> LObjByteFunction<T, R> objByteFunctionFrom(Consumer<LObjByteFunctionBuilder<T, R>> buildingFunction) {
		LObjByteFunctionBuilder builder = new LObjByteFunctionBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
897996
@Nonnull
	public static IntBinaryOperator intBinaryOperatorFrom(Consumer<IntBinaryOperatorBuilder> buildingFunction) {
		IntBinaryOperatorBuilder builder = new IntBinaryOperatorBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
128952
public RunT getNearestOldBuild(int n) {
        SortedMap<Integer, ? extends RunT> m = _getRuns().tailMap(n);
        if (m.isEmpty())
            return null;
        return m.get(m.firstKey());
    }
164614
@Nonnull
	public static <T> LObjIntConsumer<T> objIntConsumerFrom(Consumer<LObjIntConsumerBuilder<T>> buildingFunction) {
		LObjIntConsumerBuilder builder = new LObjIntConsumerBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
535600
public OptionBuilder buildOption( String name, String... options )
    {
        OptionBuilder option = OptionBuilder.create( name );
        parser.build( option, options );
        return option;
    }
543453
@Nonnull
	public static <T> LOiToSrtFunction<T> oiToSrtFunctionFrom(Consumer<LOiToSrtFunctionBuilder<T>> buildingFunction) {
		LOiToSrtFunctionBuilder builder = new LOiToSrtFunctionBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
582214
@Nonnull
	public static IntPredicate intPredicateFrom(Consumer<IntPredicateBuilder> buildingFunction) {
		IntPredicateBuilder builder = new IntPredicateBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
246734
@Nonnull
	public static <T, R> LObjIntBoolFunction<T, R> objIntBoolFunctionFrom(Consumer<LObjIntBoolFunctionBuilder<T, R>> buildingFunction) {
		LObjIntBoolFunctionBuilder builder = new LObjIntBoolFunctionBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
1277683
Optional<Builder> getBuilder() {
    Optional<TypeElement> builderTypeElement = Optional.empty();
    for (TypeElement containedClass : ElementFilter.typesIn(autoValueClass.getEnclosedElements())) {
      if (hasAnnotationMirror(containedClass, AUTO_VALUE_BUILDER_NAME)) {
        if (!CLASS_OR_INTERFACE.contains(containedClass.getKind())) {
          errorReporter.reportError(
              "@AutoValue.Builder can only apply to a class or an interface", containedClass);
        } else if (!containedClass.getModifiers().contains(Modifier.STATIC)) {
          errorReporter.reportError(
              "@AutoValue.Builder cannot be applied to a non-static class", containedClass);
        } else if (builderTypeElement.isPresent()) {
          errorReporter.reportError(
              autoValueClass + " already has a Builder: " + builderTypeElement.get(),
              containedClass);
        } else {
          builderTypeElement = Optional.of(containedClass);
        }
      }
    }

    if (builderTypeElement.isPresent()) {
      return builderFrom(builderTypeElement.get());
    } else {
      return Optional.empty();
    }
  }
454637
@Nonnull
	public static <T> ObjDoubleConsumer<T> objDblConsumerFrom(Consumer<ObjDoubleConsumerBuilder<T>> buildingFunction) {
		ObjDoubleConsumerBuilder builder = new ObjDoubleConsumerBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
326985
@Nonnull
	public static <T1, T2> LBiObjFltConsumer<T1, T2> biObjFltConsumerFrom(Consumer<LBiObjFltConsumerBuilder<T1, T2>> buildingFunction) {
		LBiObjFltConsumerBuilder builder = new LBiObjFltConsumerBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
204429
@Nonnull
	public static <R> IntFunction<R> intFunctionFrom(Consumer<IntFunctionBuilder<R>> buildingFunction) {
		IntFunctionBuilder builder = new IntFunctionBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
840566
@Nonnull
	public static <T1, T2> LBiObjBytePredicate<T1, T2> biObjBytePredicateFrom(Consumer<LBiObjBytePredicateBuilder<T1, T2>> buildingFunction) {
		LBiObjBytePredicateBuilder builder = new LBiObjBytePredicateBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
507596
public static int getBuildVersion() {
		try {
			Properties props = new Properties();
			props.load(ResourceLoader.getResourceAsStream("version"));
			
			int build = Integer.parseInt(props.getProperty("build"));
			Log.info("Slick Build #"+build);
			
			return build;
		} catch (Exception e) {
			Log.error("Unable to determine Slick build number");
			return -1;
		}
	}
797786
@Nonnull
	public static <T> ObjIntConsumer<T> objIntConsumerFrom(Consumer<ObjIntConsumerBuilder<T>> buildingFunction) {
		ObjIntConsumerBuilder builder = new ObjIntConsumerBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
6531
@Nonnull
	public static <T, R> LObjIntCharFunction<T, R> objIntCharFunctionFrom(Consumer<LObjIntCharFunctionBuilder<T, R>> buildingFunction) {
		LObjIntCharFunctionBuilder builder = new LObjIntCharFunctionBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}