mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
cleanups
This commit is contained in:
@@ -2,13 +2,13 @@ package io.nosqlbench.adapters.api.activityimpl.uniform;
|
||||
|
||||
/*
|
||||
* Copyright (c) 2022 nosqlbench
|
||||
*
|
||||
*
|
||||
* 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
|
||||
|
||||
@@ -634,7 +634,10 @@ public class ParsedOp extends NBBaseComponent implements LongFunction<Map<String
|
||||
return tmap.getAsOptionalFunction(name, type);
|
||||
}
|
||||
|
||||
public <V extends Enum<V>> Optional<LongFunction<V>> getAsOptionalEnumFunction(String name, Class<V> type) {
|
||||
public <V extends Enum<V>> Optional<LongFunction<V>> getAsOptionalEnumFunction(
|
||||
String name,
|
||||
Class<? extends V> type
|
||||
) {
|
||||
return tmap.getAsOptionalEnumFunction(name, type);
|
||||
}
|
||||
|
||||
@@ -663,9 +666,6 @@ public class ParsedOp extends NBBaseComponent implements LongFunction<Map<String
|
||||
public <V> LongFunction<V> getAsFunctionOr(String name, V defaultValue) {
|
||||
return tmap.getAsFunctionOr(name, defaultValue);
|
||||
}
|
||||
public LongToIntFunction getAsFunctionOrInt(String name, int defaultValue) {
|
||||
return tmap.getAsFunctionOrInt(name, defaultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a LongFunction that first creates a LongFunction of String as in
|
||||
|
||||
Reference in New Issue
Block a user