text stringlengths 10 2.72M |
|---|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package managedBeans;
import Helper.mailsend;
import facades.ProductFacade;
import facades.UserFacade;
import java.io.Serial... |
package com.tencent.mm.plugin.appbrand.f;
import com.tencent.mm.plugin.fts.a.a;
public final class c extends a {
protected final void BR() {
if (BS()) {
t(-104, 2);
}
}
protected final String getTableName() {
return "WeApp";
}
public final String getName() {
... |
package com.example.forwork;
public class Feedback {
private String commenter;
private String category;
private String comment;
private String date;
public Feedback(String commenter, String category, String comment, String date) {
setCommenter(commenter);
setCategory(category);
... |
package ru.vssoft.backend.payload.response;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@NoArgsConstructor
public class LoginResponse {
private Long id;
private String token;
private String refreshToken;
private String username;
private List<String> roles;
... |
package cn.livejun.common.widget;
/**
* 基本的反馈组件
* Created by H.K on 2016/3/17 0017.
*/
public class BaseFeedBack {
}
|
package com.pfchoice.springboot.service;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import com.pfchoice.springboot.model.ICDMeasure;
public interface ICDMeasureService {
ICDMeasure f... |
package ak;
import java.util.*;
public class first {
public static void main(String...args){
int i = 0,x=0,d;
String s;
char r;
Scanner arun=new Scanner(System.in);
s=arun.nextLine();
char[] ch=s.toCharArray();
int c=ch.length;
if... |
/*******************************************************************************
* Copyright 2020 Grégoire Martinetti
*
* 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://ww... |
package com.powercoder.evaluation.dao;
import com.powercoder.evaluation.entity.BusinessConsulting;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* @author :Done
* @date :Created in 2020/3/18 23:10
* @description:公司预约产品演示的数据层
*/
@Mapper
public interface BusinessConsultingMapper {
int ... |
package com.lubarov.daniel.data.table.sequential;
import com.lubarov.daniel.data.collection.Collection;
import com.lubarov.daniel.data.dictionary.KeyValuePair;
import com.lubarov.daniel.data.dictionary.functions.GetKeyFunction;
import com.lubarov.daniel.data.dictionary.functions.GetValueFunction;
import com.lubarov.da... |
package dk.aau.controllers.sygehus;
import dk.aau.App;
import dk.aau.models.patient.GenerelinfoHandler;
import dk.aau.models.patient.Patientinformation;
import dk.aau.models.database.DatabaseManipulator;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Alert;
import javafx.scene.co... |
package com.yunhe.billmanagement.entity;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Eq... |
package com.GFT.casadeshow.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.GFT.casadeshow.model.User;
public interface Users extends JpaRepository<User, Long> {
}
|
package cn.tedu.note.service;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import cn.tedu.note.dao.UserDao;
import cn.tedu.note.entity.User;
@Service("userService")
publi... |
package com.example.demo.service.Impl;
import com.example.demo.Dao.ILuceneDao;
import com.example.demo.entity.Project;
import com.example.demo.mapper.ProjectMapper;
import com.example.demo.service.IProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Serv... |
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import javax.swing.*;
public class delListener implements ActionListener {
public ChoosePanel cPanel;
public JTextField tf;
private String src;
delListener(ChoosePanel cPanel,JTextField tf){
this.cPanel=cPanel;
t... |
package LightProcessing.common.tile;
import LightProcessing.common.lib.*;
import net.minecraft.tileentity.TileEntity;
public class TileEntityDarkGen extends TileEntity {
public void updateEntity() {
if (this.worldObj.getBlockMetadata(this.xCoord, this.yCoord, this.zCoord) == 1) {
for (int i = -10; i < 10; i++)... |
package net.hackdog.graphble;
import android.Manifest;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.IBinder;
import android.support.des... |
package com.example.geofence;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
... |
package com.bean;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
@Data
@Entity
@Table(name = "t_sys_set")
public class SysSet implements Serializable {
@Id
... |
package com.wincentzzz.project.template.springhack.mapper;
import com.wincentzzz.project.template.springhack.dto.request.AppointmentMedicineRequest;
import com.wincentzzz.project.template.springhack.models.Appointment;
import com.wincentzzz.project.template.springhack.models.AppointmentMedicine;
import com.wincentzzz.... |
package com.tencent.mm.ui.widget.textview;
import android.content.Context;
import android.text.Layout;
import android.text.Spannable;
import android.view.ViewTreeObserver.OnPreDrawListener;
import android.view.ViewTreeObserver.OnScrollChangedListener;
import android.widget.TextView;
import android.widget.TextView.Buff... |
package com.example.nata.hallimane;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.AsyncTask;
import android... |
package online;
import Util.R;
import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* Created by cuong on 11/22/2015.
*/
public class HttpConnectionMethods {
public static boolean postBestPlayer(String name, String facebookID, String score) {
String params = Stri... |
package Lab04.Zad2;
public class InterestA implements Interest{
@Override
public void compute() {
System.out.println("Computing interest A");
}
}
|
package com.emp.friskyplayer.widget;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.widget.RemoteViews;
import com.emp.friskyplayer.R;
import com.emp.friskyplayer.utils.Pla... |
package de.fhg.iais.roberta.worker;
import java.util.Collections;
import java.util.List;
import de.fhg.iais.roberta.bean.UsedMethodBean;
import de.fhg.iais.roberta.components.Project;
import de.fhg.iais.roberta.syntax.Phrase;
import de.fhg.iais.roberta.visitor.collect.AbstractUsedMethodCollectorVisitor;
import de.fhg... |
package final_exam;
import java.util.ArrayList;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JTextArea;
public class Manager {
protected String [] menupan = {"순살 후라이드","양념 순살","간장 순살", "맥주 500cc","맥주 1000cc","음료수"};
protected int [] menu_howmany = {0,0,0,0,0,0};
protected static int... |
package net.mizucoffee.wiimote4j;
import java.util.EventListener;
/**
* OnBoardStateChangeListener
*
* @author KawakawaRitsuki
* @since 0.1
*/
public interface OnBoardStateChangeListener extends EventListener {
void onChanged(int status);
} |
package com.seemoreinteractive.seemoreinteractive.Model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class UserStoreTriggers implements Serializable {
private static final long serialVersionUID = 8L;
List<StoreTriggers> StoreTriggers;
public UserStoreTrigger... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package trash;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.security.GeneralSecurityException;
import java.util.Date;
import java.util.UUID;
import jav... |
public class AircraftCarrier extends Ship{
} |
package com.cjw.server.service;
import com.cjw.server.pojo.AdminRole;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author cjw
* @since 2021-07-12
*/
public interface IAdminRoleService extends IService<AdminRole> {
}
|
package com.woohun.lang.String.ex1;
import java.util.Scanner;
public class NationSearch {
private Scanner sc;
public NationSearch() {
sc = new Scanner(System.in);
}
public Nation search(Nation[] nations) {
System.out.println("검색할 나라이름을 입력하세요.");
String NationName = sc.next();
Nation n = null;... |
package com.sportingCenterWebApp.calendarservice.controller;
import com.sportingCenterWebApp.calendarservice.model.Subscription;
import com.sportingCenterWebApp.calendarservice.repo.SubscriptionRepository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Request... |
package br.com.nozinho.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persisten... |
package com.lay.open_eventbus_compiler;
/**
* 常量类
*/
public class Constants {
// 注解处理器中支持的注解类型
public static final String SUBSCRIBER_ANNOTATION_TYPES = "com.lay.open_eventbus_annotation.Subscriber";
// APT生成类文件所属包名
public static final String PACKAGE_NAME = "packageName";
// APT生成类文件的类名
public... |
package com.company;
import palindrom.Sentence;
public class Main {
public static void main(String[] args) {
// write your code here
Sentence greeting = new Sentence("Hello!");
greeting.reverse();
System.out.println(greeting.getReverse());
Sentence greeting2 = new Sentence("Hel... |
package com.graphic.RNCanvas;
import android.graphics.Color;
import android.graphics.DashPathEffect;
import android.graphics.Paint;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.bridge.ReadableMap;
import java.util.ArrayList;
import java.util.HashMap;
public class CanvasConvert {... |
package thuc_hanh;
public class IterativeBinarySearch {
public static void main(String[] args) {
int[] arr = {0,1,2,3,4,5,6,7,8,9};
int result = binarySearch(9, arr);
if (result == -1) System.out.println("not found");
else System.out.println("index: " + result );
}
public s... |
package com.isystk.sample.common.exception;
/**
* アプリケーション内部で発生した例外を catch & throw するための実行時例外です。
*/
public class SystemException extends RuntimeException {
private static final long serialVersionUID = 8462188377363105093L;
/**
* @param message この例外に関する詳細な情報.
* @param cause 原因となった例外
*/
public Syste... |
package com.xinruke.common.vo.query;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import springfox.documentation.annotations.ApiIgnore;
import java.util.ArrayList;
import java.util.List;
/**
* @ClassName BaseQueryVO
* @C... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.04.... |
package com.example.healthmanage.ui.activity.famousDoctorHall.adapter;
import android.content.Context;
import androidx.annotation.Nullable;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.healthmanage.R;
import com.example.healthmanage.ui... |
package com.polsl.edziennik.desktopclient.view.admin;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.util.concurrent.ExecutionException;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.JL... |
package com.cnk.travelogix.supplier.inventory.service.impl;
import javax.annotation.Resource;
import com.cnk.travelogix.acco.inventory.core.model.AccoInventoryGridModel;
import com.cnk.travelogix.accoinventory.core.model.AccoInventoryDefinitionModel;
import com.cnk.travelogix.accoinventory.core.model.AccoInventoryDet... |
package juc;
import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;
/**
* @author wyg_edu
* @date 2020年5月9日 上午8:09:30
* @version v1.0
* 多线程中获取新线程的方式
*/
public class CallableDemo {
public static void main(String[] args) throws Exception {
FutureTask<Integer> futureTas... |
package com.rapid.test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.ArrayList;
import java.util.List;
import org.junit.jupiter.api.Test;
import com.rapid.contr... |
package com.weatherandroid.cc;
import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;
import j... |
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the ter... |
package com.ojas.jwt;
import java.io.IOException;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import org.apache.log4j.Logger;
import org.springframework.security.core.... |
package com.komaxx.komaxx_gl.util;
public class Interpolators {
private Interpolators(){}
/**
* Extra simple Interpolator: linear
*/
public static class LinearInterpolator implements Interpolator{
private final float startY;
private final float endY;
private l... |
package com.sensetime.accessibilitydemo;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.provider.Settings;
import android.text.TextUtils;
import android.util.Log;
/**
* @author qinhaihang_vendor
* @version $Rev$
* @time 2019/3/20 20:17
* @des
* @packgen... |
package com.conglomerate.dev.Exceptions;
import org.springframework.http.HttpStatus;
import org.springframework.web.server.ResponseStatusException;
public class WrongEmailException extends ResponseStatusException {
public WrongEmailException(String username, String email) {
super(HttpStatus.BAD_REQUEST, ... |
package com.test.leverton.repository.impl;
import com.test.leverton.model.URL;
import com.test.leverton.repository.URLShortnerRepository;
import org.springframework.stereotype.Repository;
import java.util.ArrayList;
import java.util.List;
/**
* Created by adarshbhattarai on 4/25/18.
*/
@Repository
//@Transactional... |
package com.tencent.mm.ui.widget.textview;
import android.view.View;
import android.view.View.OnAttachStateChangeListener;
class a$5 implements OnAttachStateChangeListener {
final /* synthetic */ a uPp;
a$5(a aVar) {
this.uPp = aVar;
}
public final void onViewAttachedToWindow(View view) {
... |
package com.luhc.blog.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.luhc.blog.dao.PostDao;
import com.luhc.blog.entity.ArchivePostVo;
import com.luhc.blog.entity.Post;
import com.luhc.blog.servic... |
package com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.builder;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.BeschichtungsInformationFolieType;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.FolierstationEnum;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.SchichtTypEnum;
im... |
package GameStrategy;
import project.Turn;
public interface GameStrategy {
Turn execute();
boolean isSolved();
}
|
package learnJava.masterClass;
public class Main {
public static void main(String[] args) {
byte validByte =100;
short validShort =10000;
int validInt =123_456_100;
long validLong = 50000L + 10L*(validByte+validInt+validShort);
System.out.println(validLong);
}
}
|
package lck.productevaluation.home.adapter;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageVi... |
/*
* Copyright 2018 Ameer Antar.
*
* 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 t... |
package com.acme.orderserver.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;
@Data
@NoArgs... |
package persistence;
// Code partly taken from JsonSerializationDemo
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.stream.Stream;
import model.SuggestUniversity;
import org.json.*;
// Represents a reader that reads sugge... |
package com.smxknife.java.ex4.inneroverride;
public class BigEgg2 extends Egg2 {
public class Yolk extends Egg2.Yolk {
public Yolk(){
System.out.println("BigEgg2.Yolk");
}
public void f() {
System.out.println("BigEgg2.Yolk.f");
}
}
public BigEgg2() {
System.out.println("New BigEgg2");
insertYolk(... |
package org.ah.minecraft.tweaks;
import org.bukkit.Bukkit;
import org.bukkit.Server;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
public class HarderHunger extends Tweak {
@Override
public void init(final Server server, Plugin plugin) {
server.getScheduler().scheduleSyncRepeatingT... |
package top.yunp.startactivitywithpermission;
import android.databinding.DataBindingUtil;
import android.databinding.ViewDataBinding;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import top.yunp.startactivitywithpermission.databinding.ActivityMa... |
package ch02.quiz2_1;
@FunctionalInterface
public interface ApplePrinter {
String print(Apple apple);
}
|
/*
* Copyright (c) 2018, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory
* CODE-743439.
* All rights reserved.
* This file is part of CCT. For details, see https://github.com/LLNL/coda-calibration-tool.
*
* Licensed under the Apache License, Version 2.0 (the “Licensee... |
package crossing;
import uk.co.real_logic.agrona.DirectBuffer;
public interface LOBManager {
DirectBuffer processOrder(DirectBuffer message);
boolean isClientMarketDataRequest();
}
|
package com.mes.old.meta;
// Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final
/**
* TvDemand generated by hbm2java
*/
public class TvDemand implements java.io.Serializable {
private TvDemandId id;
public TvDemand() {
}
public TvDemand(TvDemandId id) {
this.id = id;
}
public TvDemandId getId() {... |
package mariculture.compatibility;
import mariculture.core.handlers.LogHandler;
import mariculture.core.lib.Modules;
import mariculture.core.lib.Modules.Module;
import mariculture.core.util.Fluids;
import net.minecraftforge.fluids.FluidRegistry;
import org.apache.logging.log4j.Level;
public class Compat extends Modu... |
/**
*
* @Title: StaticPageServiceImpl.java
* @Package com.yqwl.service.impl
* @Description: TODO)
* @author zhoujiaxin
* @date 2019年4月20日
*/
package com.yqwl.service.impl;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamW... |
package com.playsafe.conversions.service;
import org.springframework.stereotype.Service;
@Service
public class ConversionsServiceImpl implements ConversionService {
public static final double KELVIN_CONSTANT = 273.15;
public static final double MILES_TO_KM_CONSTANT = 1.60934;
public static final double KM_TO_MILE... |
package pattern.adapter;
/**
* @Classname VoltageAdapter
* @Description
* @Date 2020-03-31 21:54
* @Created by yinrong
*/
public class VoltageAdapter extends Voltage220V implements Voltage5V {
@Override
public int outPut5V() {
int src=outPut220V();
int dstV=src/44;
return dstV ;... |
package testing;
import expressiontobt.ExpressionToBinaryTree;
import expressiontobt.ExpressionTreeNode;
/**
* Test related to constructing a BT
* from an expression and representing it in different
* notations.
*
* @author Dylan
*/
public class ExpressionToBinaryTreeUnitTests
{
private static Expression... |
package sforum.security;
import org.springframework.security.core.Authentication;
import sforum.beans.Application;
import sforum.beans.SessionData;
import sforum.model.User;
import sforum.repository.UserRepository;
import javax.inject.Inject;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServle... |
package Adventure.Items;
import java.util.*;
//********--------------------------------------------------********\\
// This class is used for counting, organizing and weighing items. \\
// Inventory holds a constant of MAX_WEIGHT. \\
// Inventory holds an int value of weight. \\
// Inventory holds lists of ... |
package com.lxd.function;
public class StringFunction {
public static String toUpper(String str){
return str.toUpperCase();
}
}
|
package Test;
import java.util.UUID;
public class Test {
String ttp = String.valueOf(System.currentTimeMillis());
byte[] timeStamp = ttp.getBytes();
String uuidStr = UUID.randomUUID().toString();
byte[] uuid = uuidStr.getBytes("UTF-8");
byte[] resourceURI = "/v2/sv/addUser".getBytes("UTF-8");
}
|
package kr.or.kosta.ams.bin;
import kr.or.kosta.ams.boundary.MainFrame;
public class AMS {
public static void main(String[] args) {
MainFrame frame = new MainFrame();
frame.setVisible(true);
frame.setSize(550,550);
frame.setTitle("KOSTA AMS - ¸ÞÀÎȸé");
frame.setContents();
frame.setEventRegister();
... |
package com.espendwise.manta.util.validation.rules;
import com.espendwise.manta.model.data.WorkflowData;
import com.espendwise.manta.service.WorkflowService;
import com.espendwise.manta.support.spring.ServiceLocator;
import com.espendwise.manta.util.Utility;
import com.espendwise.manta.util.arguments.ObjectArgument;
... |
package todo.entity;
import java.sql.SQLException;
import javax.xml.bind.annotation.XmlRootElement;
import inventory.service.StatementManager;
import com.mysql.jdbc.Statement;
@XmlRootElement
public class Branch {
private Statement stmt;
private int branchID;
private String branchName;
pri... |
package xframe.example.pattern.template;
public class Main {
public static void main(String[] args) {
AbstractTemplate template = new ContreteImpl();
template.templateMethod();
}
}
|
package com.tencent.mm.plugin.topstory.ui;
public final class b {
}
|
package com.komaxx.komaxx_gl.math;
/**
* Provides static procedures to manipulate vectors defined as float[3].
* <b>NOT thread safe</b>
*
* @author Matthias Schicker
*/
public class Vector {
private static float[] distanceTmp = new float[3];
private Vector(){}
public static float[] aMinusB2(float[] vA, ... |
package laioffer.serial;
/**
* Created by mengzhou on 6/25/17.
*/
public class GraphTheory {
// Graph:
// Vertex: (i, j, direction) which can pass through
// Neighbor:
// edge weight:
// BFS vs DFS
// Best First Search:
// Vertex: (i, i)
// Neighbor: the longest distance node from 4... |
/**
* @file: com.innovail.trouble.screen - MainMenuScreen.java
* @date: Apr 15, 2012
* @author: bweber
*/
package com.innovail.trouble.screen;
import java.util.Iterator;
import java.util.List;
import java.util.Random;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.graphics.Col... |
package com.example.mariajose.project;
import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
/**
* Created by MariaJose on 10-04-2018.
*/
@Entity
public class Question {
@PrimaryKey
private int qid;
@ColumnInfo(na... |
// Sun Certified Java Programmer
// Chapter 8; P678
// Inner Classes
public class Tester678 {
public static void main(String[] args) {
Runnable r = new Runnable(); // can't instantiate interface
/*Runnable r = new Runnable() { // curly brace, not semicolon
public void r... |
package cn.canlnac.onlinecourse.presentation.presenter;
import android.support.annotation.NonNull;
import java.io.File;
import javax.inject.Inject;
import cn.canlnac.onlinecourse.domain.interactor.DefaultSubscriber;
import cn.canlnac.onlinecourse.domain.interactor.UseCase;
import cn.canlnac.onlinecourse.presentatio... |
package com.tencent.mm.wallet_core.ui.formview;
import com.tencent.mm.wallet_core.ui.formview.a.b;
class a$8 extends b {
a$8() {
super((byte) 0);
}
public final boolean a(WalletFormView walletFormView) {
return walletFormView.isPhoneNum();
}
}
|
package L5;
public interface DAOFactory<T> {
DAO<T> getDao(String type);
}
|
package gti310.tp3.parser;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.regex.Pattern;
/**
*
* @author Phil... |
package leecode.dfs;
//递归博客http://39.96.217.32/blog/4
//https://lyl0724.github.io/2020/01/25/1/
/*
递归三部曲
看那个调用图
A
调用| |返回值
A
| |
终止条件
1.找到递归的终止条件
2.知道本层递归需要做什么(知道调用的返回值是什么,即函数的返回值)
2.1 对本层递归的处理就是对传入参数的处理
2.2 本层递归要不要用到下层递归的返回值,知道返回的是什么,要不要将他们保存起来
2.3如果是先序遍历,本层递归处理完成后,下一层传入的参数要不要变化
*/
public c... |
package com.xcj.mapper;
import java.util.List;
import com.xcj.pojo.Permission;
import com.xcj.utils.MyMapper;
public interface PermissionMapper extends MyMapper<Permission> {
public List<Permission> findPermsByRoleId(Long id);
} |
/*
* Copyright 2018 Bradley Steele
*
* 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 ... |
package ru.lischenko_dev.fastmessenger.adapter;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;... |
package p3.Exceptions;
/** Exception thrown when some command recieves invalid arguments. */
@SuppressWarnings("serial")
public class ArgumentException extends Exception {
public ArgumentException(String msg) {
super(msg);
}
}
// To add a new exception, copy and rename this ""TEMPLATE"", use as... |
package sandbox.cdi;
import static org.junit.Assert.assertTrue;
import javax.enterprise.event.Event;
import javax.enterprise.event.Observes;
import javax.enterprise.inject.Instance;
import javax.enterprise.inject.se.SeContainer;
import javax.enterprise.inject.se.SeContainerInitializer;
import javax.enterpris... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.