lang
stringclasses 10
values | seed
stringlengths 5
2.12k
|
---|---|
java |
@Override
public BunchSetId getKeyFromInt(int key) {
return (key == LangbookDbSchema.EMPTY_BUNCH_SET_ID)? EMPTY : new BunchSetId(key);
}
@Override
public BunchSetId getKeyFromDbValue(DbValue value) {
return getKeyFromInt(value.toInt());
}
@Override
public BunchSetId getDeclaredEmpty() {
return EMPTY; |
java | public class EmmServiceResponse {
private List<String> responseMessages;
private int responseCode;
public List<String> getResponseMessages() {
return responseMessages; |
java | package uk.gov.pay.connector.events.model.charge;
import java.time.ZonedDateTime;
public class GatewayRequires3dsAuthorisation extends PaymentEventWithoutDetails {
public GatewayRequires3dsAuthorisation(String resourceExternalId, ZonedDateTime timestamp) {
super(resourceExternalId, timestamp);
}
}
|
java |
public Integer getNota() {
return nota;
}
|
java | * certain amount of money stashed, the only constraint stopping you from robbing each of
* them is that adjacent houses have security systems connected and it will automatically
* contact the police if two adjacent houses were broken into on the same night.
*
* Given an integer array nums representing the amount of money of each house, return the
* maximum amount of money you can rob tonight without alerting the police.
*
*
* Sample Input: |
java | /**
* This package manages Util functions used during testing.
*/
package org.thinkit.test.util;
|
java | super(message);
}
public AlmaConnectionException(String message, Throwable cause) {
super(message, cause);
}
}
|
java | } else {
return position;
}
}
@Override
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
if(viewType==TYPE_FOOTER){
View view=View.inflate(parent.getContext(), R.layout.activity_view_footer,null);
return new FooterViewHolder(view);
}else{
View rootView=View.inflate(parent.getContext(),R.layout.item_book_bytag,null);
return new BookByTagViewHolder(rootView);
}
} |
java | import org.springframework.web.bind.annotation.RestController;
import javax.validation.Valid;
/**
* @author : cchao
* @version 2019-03-09
*/
@RestController
@RequestMapping(value = "/reply")
public class ReplyController {
|
java | }
maxValue = Math.max(maxValue, right - left);
}
return maxValue;
}
} |
java | load();
}
for (final String key2 : paths.keySet()) {
if (key2.equals(key)) {
final String string = paths.get(key2); |
java |
import java.lang.reflect.Field;
/**
* 反射工具类
*
* @author noone
* @date 2019-07-04 9:38
*/
public class ReflectUtil {
public static Object getFieldValueByFieldName(String filedName, Object object) {
Object val = null;
try {
|
java | */
@Data
public class UserRegisterReq {
private String username;
private String password; |
java | if (dist < bestd) {
a = p[2] - r;
if (a < 0)
a = -a;
dist += a;
if (dist < bestd) {
bestd = dist;
best = p[3]; |
java | @Override
public Object next() {
return (currentIterator != null) ? currentIterator.next() : null;
}
|
java | * LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.litho.sections.common;
import com.facebook.litho.annotations.Event;
/**
* This event is triggered by {@link HideableDataDiffSectionSpec} when it needs to
* get a unique identifier for the edge model provided.
*/
@Event(returnType = Object.class) |
java | package com.tank.iconkit;
import android.content.Context;
import android.graphics.Typeface;
import android.util.TypedValue;
public class Util {
private static Typeface tf;
|
java | }
return saveStatus;
}
|
java | * @author <NAME>
*/
@Component
public class CbsEndpointInterceptor extends EndpointInterceptorAdapter {
@Override
public boolean handleRequest(MessageContext messageContext, Object endpoint) throws Exception {
return super.handleRequest(messageContext, endpoint); |
java | MavenPublication p = publications.create(PUBLICATION_NAME, MavenPublication.class, publication -> {
publication.from(project.getComponents().getByName("java"));
publication.artifact(sourcesJar);
publication.artifact(javadocJar);
DeferredConfiguration.deferredConfiguration(project, () -> {
publication.setArtifactId(((Jar) project.getTasks().getByName("jar")).getBaseName());
});
PomCustomizer.customizePom(project, conf, publication);
});
LOG.info("{} - configured '{}' publication", project.getPath(), p.getArtifactId());
});
|
java | public Event getEventDetails() {
throw new AssertionError("This method should not be called.");
}
@Override
public void updateFilteredPersonList(Predicate<Person> predicate) {
throw new AssertionError("This method should not be called.");
}
@Override
public boolean canUndoAddressBook() {
throw new AssertionError("This method should not be called."); |
java | public abstract class AbstractLoggerFactory {
public void writeLog() {
this.getLogger().writeLog();
}
|
java | import org.eclipse.core.runtime.CoreException;
public interface IProblemReporter {
|
java | public RealmList<PartnerShip> getPartnerships() {
return partnerships;
}
public void setPartnerships(RealmList<PartnerShip> partnerships) {
this.partnerships = partnerships;
} |
java | return weight;
}
@Override
public String dir() {
return dir;
}
@Override |
java |
@Override
public void getLocationOnScreen(int[] locations) {
mRecyclerView.getLocationOnScreen(locations);
}
@Override
public View getChildAt(int index) {
return mRecyclerView.getChildAt(index);
}
@Override
public int getChildPosition(View child) {
return mRecyclerView.getChildPosition(child);
} |
java |
import java.util.Arrays;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static com.basaki.algodaily.BinaryTreeInorderTraversal.inorderTraversal;
import static org.junit.jupiter.api.Assertions.assertIterableEquals;
class BinaryTreeInorderTraversalTest {
|
java | package org.clang.enums;
import org.moe.natj.general.ann.Generated;
@Generated
public final class CXVisibilityKind {
@Generated public static final int Invalid = 0x00000000;
@Generated public static final int Hidden = 0x00000001;
@Generated public static final int Protected = 0x00000002; |
java | public class GetString implements Callable<String>{
@Override
public String call() throws Exception {
return getString();
}
public static String getString() {
return "String"; |
java | <gh_stars>1-10
package com.bilitech.yilimusic.repository;
import com.bilitech.yilimusic.entity.Artist;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;
public interface ArtistRepository extends JpaRepository<Artist, String> {
Optional<Artist> findById(String id);
}
|
java | while( (c = fin.read()) != -1) {
temp = temp + Character.toString((char)c);
}
ed2.setText(temp);
Toast.makeText(getBaseContext(),"file read",Toast.LENGTH_SHORT).show();
}
catch(Exception e){
e.printStackTrace();
}
}
public void save(View view) {
String data = ed1.getText().toString(); |
java | ObjectDetectionActivity.class);
startActivity(myIntent);
}
protected void onClick_update_cloud_res(View v) {
ContextEngine.UpdateAvailableResources(getApplicationContext(),
getString(R.string.serverURL) + "service_discovery", true);
}
|
java | */
public class TurnOnAllLightsWithMediatorLightCommand implements LightCommand {
private final Mediator mediator;
public TurnOnAllLightsWithMediatorLightCommand(Mediator mediator) {
this.mediator = mediator;
}
@Override |
java |
@Override
public void runOpMode() throws InterruptedException {
redAutonomous();
}
}
|
java |
ZipString test = new ZipString();
System.out.println(test.zipString(iniString));
}
public String zipString(String iniString) {
if(iniString == null || iniString.length() < 1){
return iniString;
}
char[] s = iniString.toCharArray(); |
java | @Test
public void testDetermineSelectedObjects() throws Exception {
TripartateTemplateElementProcessor proc = new TripartateTemplateElementProcessor(new JexlExpressionFactory());
AppLocation location = new AppLocation();
TripartateElementBasic te = new TripartateElementBasic();
te.setDataSelectorExpression("");
assertNull(proc.determineSelectedObjects(location, te));
te.setDataSelectorExpression("test1");
assertEquals(0, ((Collection<?>)proc.determineSelectedObjects(location, te)).size());
location.put("test1", "datavalue"); |
java | import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.google.gson.JsonObject;
import org.alcha.algalona.interfaces.RequestCallback;
import org.alcha.algalona.network.AlgalonClient;
import org.alcha.algalona.network.WoWCommunityRequest; |
java | @Column(name = "meta_value")
private String meta_value;
public WpPostMeta() {
}
public WpPostMeta(Long postId, String meta_key, String meta_value) {
super();
this.postId = postId;
this.meta_key = meta_key;
this.meta_value = meta_value;
}
|
java |
import feign.Headers;
import feign.Param;
import feign.QueryMap;
import feign.RequestLine;
import feign.Response;
import java.util.Map;
public interface OidcApi {
@RequestLine("POST /o/authorize")
@Headers({ |
java |
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactoryConfigurationError;
import com.voxworx.polycom.domain.SipPhone;
|
java | md5.update(str.getBytes("UTF-8"));
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException(e.getMessage());
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e.getMessage());
}
byte[] encodedValue = md5.digest(); |
java | @ObfuscatedSignature(
signature = "Lll;"
)
static IndexedSprite field2979;
@ObfuscatedName("q")
@ObfuscatedSignature(
signature = "(IIII)I", |
java | Inner
*/
public class Solution {
public InnerClass[] innerClasses = new InnerClass[2];
public class InnerClass {
}
public static Solution[] getTwoSolutions() {
Solution[] result = new Solution[2]; |
java | // // Get detection requester object
// mDetectionRequester = new DetectionRequester(this);
//
// PowerManager pm = (PowerManager) getSystemService(POWER_SERVICE);
// PowerManager.WakeLock lock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "SensorRead");
// //if ((lock != null) && // we have a WakeLock
// // (lock.isHeld() == false)) { // but we don't hold it
// lock.acquire(); //Never release!
// // }
// }
//
//
// /*
// * Handle results returned to this Activity by other Activities started with
// * startActivityForResult(). In particular, the method onConnectionFailed() in |
java | public Builder setUsername(String username) {
this.username = username;
return this;
}
public Builder setPassword(String password) {
this.password = password;
return this;
}
public Builder setLink(String link) {
this.link = link; |
java | import org.smartregister.job.PullUniqueIdsServiceJob;
import org.smartregister.job.SyncServiceJob;
import org.smartregister.job.ValidateSyncDataServiceJob;
import org.smartregister.sync.intent.SyncIntentService;
/**
* Created by ndegwamartin on 05/09/2018.
*/
public class SampleJobCreator implements JobCreator {
@Nullable
@Override
public Job create(@NonNull String tag) {
switch (tag) {
case SyncServiceJob.TAG: |
java | {
public HotCocoaItem(Properties properties) {
super(properties);
}
@Override
public void affectConsumer(ItemStack stack, World worldIn, LivingEntity consumer) {
Iterator<EffectInstance> itr = consumer.getActivePotionEffects().iterator();
ArrayList<Effect> compatibleEffects = new ArrayList<>();
while (itr.hasNext()) {
EffectInstance effect = itr.next();
if (effect.getPotion().getEffectType().equals(EffectType.HARMFUL) && effect.isCurativeItem(new ItemStack(Items.MILK_BUCKET))) {
compatibleEffects.add(effect.getPotion());
} |
java | import static org.junit.Assert.assertNull;
/**
* TestGenericUDFDatetimeLegacyHybridCalendar.
*/
public class TestGenericUDFDatetimeLegacyHybridCalendar {
public static void runAndVerify(GenericUDF udf,
Object arg1, Object expected) throws HiveException {
DeferredObject[] args = { new DeferredJavaObject(arg1) }; |
java | import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.mastercard.api.core.model.RequestMap;
import com.mastercard.api.locations.ATMLocations; |
java |
@JsonIgnore
public static final String rootElement = "distItem";
@JsonIgnore
public String getSchemaPath() { |
java | if (!fieldPath.contains(":")) {
// for schema without prefix: we need to add schema name as prefix
fieldPath = dirtyProperty.getSchema().getName() + ":" + fieldPath;
}
|
java |
public class ReplaceDemo {
public static void main2(String[] args) {
// 替换不是数字的 字符为空 ^ 匹配输入字符串的开始位置,除非在方括号表达式中使用,此时它表示不接受该字符集合
String s = "wang...test4.jpg".replaceAll("[^\\d]", "");
System.out.println(s); |
java | } catch (Exception e) {
Log.e(TAG, e.getMessage(), e);
}
}
}
}
|
java | case "time with time zone":
return "timez";
case "time without time zone":
return "time";
case "character varying":
return "varchar";
case "bit varying":
return "varbit";
case "double precision":
return "float8"; |
java | import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
public class TFS {
private String TFS_01_ReferenceIdentificationQualifier;
private String TFS_02_ReferenceIdentification;
private String TFS_03_ReferenceIdentificationQualifier;
private String TFS_04_ReferenceIdentification;
private String TFS_05_IdentificationCodeQualifier;
private String TFS_06_IdentificationCode;
private String TFS_07_Date;
private String TFS_08_NameControlIdentifier;
public String toString() { return ReflectionToStringBuilder.toString(this);}
}
|
java | */
@Modifying
@Query("delete from RolePermission r where r.roleId = ?1")
void deleteByRoleId(String roleId);
}
|
java | && mode != BugreportParams.BUGREPORT_MODE_WEAR
&& mode != BugreportParams.BUGREPORT_MODE_TELEPHONY
&& mode != BugreportParams.BUGREPORT_MODE_WIFI) {
Slog.w(TAG, "Unknown bugreport mode: " + mode);
throw new IllegalArgumentException("Unknown bugreport mode: " + mode);
}
}
|
java | private String type;
private String DALid; //new dal ID
//private ArrayList<Method> methodsInputs;
private ArrayList<DataSourceInput> dataSources;
private String VDCid;
//datasources
//private ArrayList<DataSource> dataSourcesDAL; |
java | import org.eclipse.draw2d.Label;
import org.eclipse.gef.commands.Command;
import org.eclipse.gef.editpolicies.DirectEditPolicy;
import org.eclipse.gef.requests.DirectEditRequest;
import org.snaker.designer.commands.RenameElementCommand;
import org.snaker.designer.figures.AbstractElementFigure;
import org.snaker.designer.model.BaseElement;
|
java | import net.minecraft.world.inventory.CraftingContainer;
import net.minecraft.world.inventory.ResultContainer;
import net.minecraft.world.inventory.ResultSlot;
import net.minecraft.world.inventory.Slot;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.crafting.CraftingRecipe;
import net.minecraft.world.item.crafting.RecipeType;
import net.minecraft.world.level.Level;
public class CraftingStickContainer extends ContainerBase implements IContainerCraftingAction {
|
java | controller.yButton.whenActive(new OpenPusher(), conditions, true);
controller.yButton.whenInactive(new ClosePusher(), conditions, true);
//Lift
controller.aButton.whenActive(new LiftSetStart(), conditions, false);
controller.bButton.whenActive(new LiftSetHatch1(), conditions, false);
controller.xButton.whenActive(new LiftSetHatch2(), conditions, false);
controller.yButton.whenActive(new LiftSetHatch3(), conditions, false);
}
} |
java | @MethodsReturnNonnullByDefault
@ParametersAreNonnullByDefault
package gigaherz.configurablecane.mixin;
import net.minecraft.MethodsReturnNonnullByDefault;
|
java |
/**
* memcachedのポート番号に65535が設定された場合エラーとならないこと.
* @throws Exception memcachedのポート番号が範囲外
*/
@Test
@PrepareForTest(DcMxConfig.class)
public void memcachedのポート番号に65535が設定された場合エラーとならないこと() throws Exception {
// テスト用のボリュームを使用するようにDcMxConfigをスパイ
PowerMockito.spy(DcMxConfig.class);
|
java | Rule bias = new ConstantRule(logisticRegression.getWeights().getBiasForClass(classIndex));
classScoreCalculation.addRule(bias);
for (int j=0;j<logisticRegression.getNumFeatures();j++){
Feature feature = logisticRegression.getFeatureList().get(j);
double weight = logisticRegression.getWeights().getWeightsWithoutBiasForClass(classIndex).get(j);
double featureValue = vector.get(j);
double score = weight*featureValue;
LinearRule rule = new LinearRule();
rule.setFeature(feature);
rule.setFeatureValue(featureValue);
rule.setScore(score);
rule.setWeight(weight);
linearRules.add(rule); |
java | public static void main(String[] args) {
Flowable<Long> flowable = Flowable.range(1, 5)
.filter(i -> i % 2 == 0)
.flatMap(i -> interval(i, TimeUnit.SECONDS));
flowable.subscribe(
l -> log.info("Even time intervals {}", l),
ex -> log.error("Error {}", ex.getMessage())
);
hold(30000); |
java |
@Test
public void doThings(){
String a = "D:\\code\\coding.net\\upworkattachment\\src\\main\\java\\com\\rest\\mapper";
a ="D:\\code\\coding.net\\upworkattachment\\src\\\\main\\\\java\\\\com\\\\rest\\\\mapper\\APODao.java";
String b = "com.rest.domain";
|
java | * @version: 2.0
* @website: https://yubuntu0109.github.io/
*/
@Repository
public interface FriendMapper extends BaseMapper<Friend, Integer> {
// TODO: 8/23/2019 添加好友信息
@Override
int insertSelective(Friend friend);
// TODO: 8/23/2019 选择性查询好友信息
@Override
List<Friend> selectBySelective(Friend friend);
// TODO: 8/23/2019 更新好友信息 |
java | @JacksonXmlProperty(namespace = "http://inspire.jrc.ec.europa.eu/schemas/lcv/3.0", localName = "landCoverObservation")
public void setLandCoverObservation(final _landCoverObservation obj)
{
if (obj != null)
{
landCoverObservation.add(obj); |
java | private TwoLineActionRow mDetailTitle;
private TwoLineActionRow mDetailPhone;
private View mDetailPhoneDivider;
private TwoLineActionRow mDetailRoom;
private View mDetailRoomDivider;
private TextView mDetailInfo;
public LibraryDetailView(Activity activity, LibraryItem libraryItem) {
mActivity = activity; |
java | public String[] getActions(SpiderData entityData)
{
return new String[] { "idle" };
}
@Override
public void perform(SpiderData entityData)
{
} |
java | public class DateFM2I extends FM2I<DateFieldMeta> {
@Override
public Class<? extends IFieldMeta> targetMeta() {
return DateFieldMeta.class;
}
|
java |
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.Collections;
import java.util.Set;
import org.springframework.core.convert.TypeDescriptor;
import org.springframework.core.convert.converter.Converter;
import org.springframework.core.convert.converter.GenericConverter;
import org.springframework.util.ReflectionUtils;
|
java | }
} catch (final Exception e) {
;
}
|
java |
public Resource getResource() {
return resource;
}
public boolean isResourceSelected() {
return resourceSelected;
}
//================================================================================
// The following methods are being called by their corresponding commands.
//================================================================================ |
java | package io.github.dme6.notetaker.ui.functionality.listener;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.List;
import io.github.dme6.notetaker.data.NoteData;
import io.github.dme6.notetaker.task.ReadNotesTask;
import io.github.dme6.notetaker.task.SaveNoteTask;
import io.github.dme6.notetaker.ui.MainPanel;
|
java | public static final BlockEntityType<MobJarBlockEntity> MOB_JAR_BLOCK_ENTITY=BlockEntityType.Builder.create(MobJarBlockEntity::new,
MOB_JAR,
WHITE_STAINED_MOB_JAR,
ORANGE_STAINED_MOB_JAR,
MAGENTA_STAINED_MOB_JAR,
LIGHT_BLUE_STAINED_MOB_JAR,
YELLOW_STAINED_MOB_JAR, |
java | import de.ropemc.api.wrapper.WrappedClass;
@WrappedClass("net.minecraft.world.gen.MapGenCavesHell")
public interface MapGenCavesHell {
void func_180704_a(long var0, int var1, int var2, ChunkPrimer var3, double var4, double var5, double var6, float var7, float var8, float var9, int var10, int var11, double var12);
void func_180705_a(long var0, int var1, int var2, ChunkPrimer var3, double var4, double var5, double var6);
void recursiveGenerate(World var0, int var1, int var2, int var3, int var4, ChunkPrimer var5);
}
|
java |
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
* @author liuboting
* @date 2020/7/29 8:39
*/
public class HashMapTest { |
java | import org.ovirt.engine.core.bll.AbstractUserQueryTest;
import org.ovirt.engine.core.common.queries.IdQueryParameters;
import org.ovirt.engine.core.compat.Guid;
import org.ovirt.engine.core.dal.dbbroker.DbFacade;
import org.ovirt.engine.core.dao.network.VmNetworkInterfaceDao;
/** A test case for {@link GetVmInterfacesByVmIdQuery} */
public class GetVmInterfacesByVmIdQueryTest extends AbstractUserQueryTest<IdQueryParameters, GetVmInterfacesByVmIdQuery<IdQueryParameters>> {
/** A test that checked that all the parameters are passed properly to the DAO */
@Test
public void testExectueQuery() { |
java | import javax.servlet.http.HttpServletResponse;
public class CommentFilter2 implements Filter {
private FilterConfig config;
|
java | String mainImageUrlD = getIntent().getStringExtra("imageUrl");;
Picasso.get()
.load(mainImageUrlD)
.centerCrop()
.transform(new CircleTransform(0,0))
.fit()
.into(fullScreenImage);
}
}
}
|
java |
public enum NetworkProtocol {
TCP,
UDP,
ICMP
}
|
java | enableBlocks(plugins);
return plugins;
}
public void disableBlocks(List<SearchDelayPlugin> plugins) {
for (SearchDelayPlugin plugin : plugins) { |
java | // distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.googlesource.gerrit.plugins.cookbook; |
java |
/**
* Contains integration tests (interaction with the Model) for
* {@code HelpCommand}.
*/
public class HelpCommandTest {
private Model model = new ModelManager();
private Model expectedModel = new ModelManager(); |
java |
/**
* A node representation in this graph, every node may have set of incoming edges and outgoing edges, a node is represented by unique value
*
* @author <NAME>
*
* @param <T> Type of Node/Task ID
* @param <R> Type of Node/Task result
*/
public final class Node<T, R> implements Serializable {
|
java | stopAllGrids(false);
cleanPersistenceDir();
}
/** @throws Exception If failed. */
public void testCreateEncryptedCache() throws Exception {
T2<IgniteEx, IgniteEx> grids = startTestGrids(true);
createEncryptedCache(grids.get1(), grids.get2(), cacheName(), null);
|
java | * ДАО страны.
*/
public interface CountryDAO {
Country getById(long countryId);
Country getByTitle(String title);
List<Country> getAll();
}
|
java | }
/**
* {@inheritDoc}
* @see kodkod.ast.Node#accept(kodkod.ast.visitor.VoidVisitor)
*/
public void accept(VoidVisitor visitor) {
visitor.visit(this);
}
/**
* {@inheritDoc} |
java | package aula01.trabalho.ex3;
import java.lang.reflect.Array;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
ArrayList<String> arrayString = new ArrayList<>();
arrayString.add("4 3 7 3 58 7 3 45 7 4 6 3 1 2 1 2 4 5 35 87 4 32 6 7 8");
arrayString.add("4 63 645 3 7 4 57345 2 1 3 4 2 4");
arrayString.add("5 7 89 42 5 7 4 6 4 3 3 6 5 3 67 5");
// Cria uma thread para cada string da lista
for ( String s: arrayString) { |
java | return original.hasBankSupport();
}
public int fractionalDigits() {
return original.fractionalDigits();
}
public String format(double amount) {
return original.format(amount);
}
public String currencyNamePlural() {
return original.currencyNamePlural();
}
|
java | public class ContourPipeline extends OpenCvPipeline
{
// Notice this is declared as an instance variable (and re-used), not a local variable
Mat grey = new Mat();
Mat limited = new Mat();
Mat hierarchy = new Mat();
List<MatOfPoint> cnts = new ArrayList<MatOfPoint>();
List<MatOfPoint> approxList = new ArrayList<MatOfPoint>(); |
java |
/**
* 根据topic获取对应的MessageQueue,是可被订阅的队列<br>
* P.S 从Consumer Cache中拿数据,可以频繁调用。Cache中数据大约30秒更新一次
*
* @param topic
* 消息Topic |
java |
setupColumnDescription();
setupColumnDate();
setupColumnAmount();
transactionTableView.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
}
private void setupColumnDescription() {
columnDescription.setCellValueFactory(new PropertyValueFactory<Transaction, String>("description"));
|
java | @Slf4j
@Service
public class MemberServiceFallbackImpl implements MemberService {
@Override
public MemberVO findMemberByMembername(String username) {
// log.error("调用{}异常:{}", "findMemberByMembername", username);
MemberVO memberVO = new MemberVO();
memberVO.setMemberId(5L);
memberVO.setMembername("xialaokou");
memberVO.setPassword("<PASSWORD>"); |
java |
/**
* {@inheritDoc}
*/
@Override
public void setParent(TreeNode<T> parent) {
this.parent = parent;
}
/**
* {@inheritDoc} |
java | import javax.sql.DataSource;
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;
|
java | import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList; |
java | import io.quarkus.qute.i18n.Message;
@Localized("pt-BR")
public interface RegistrationMsgs_PT extends RegistrationMsgs {
@Override
@Message("Bem-vindo ao sistema de Inscricoes do TDC")
String reg_title();
}
|
java |
public T getItem(int position) {
return items.get(position);
}
public int getItemCount() {
return items.size();
}
|
Subsets and Splits