text
stringlengths
10
2.72M
/* * BrowsersVersionFilter.java * This file was last modified at 2018.12.03 20:05 by Victor N. Skurikhin. * $Id$ * This is free and unencumbered software released into the public domain. * For more information, please refer to <http://unlicense.org> */ package ru.otus.servlets; import org.apache.logging.log4j.L...
package net.liuzd.spring.boot.v2.web.filter; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet....
package com.takshine.wxcrm.message.sugar; import java.util.ArrayList; import java.util.List; /** * 查询报表接口 从crm响应回来的参数 * */ public class AnalyticsResp extends BaseCrm { private List<AnalyticsExpenseResp> expense = new ArrayList<AnalyticsExpenseResp>();// 费用列表 private List<AnalyticsOpptyResp> opptyList = new Array...
import java.text.SimpleDateFormat; import java.util.Date; public class TimePeriod implements Comparable<TimePeriod> { private long from; private long to; private final SimpleDateFormat dayFormat = new SimpleDateFormat("yyyy.MM.dd"); private static final SimpleDateFormat dateFormat = new SimpleDateForm...
package instruments.strings.boweds; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.assertEquals; public class CelloTest { Cello cello; @Before public void before() { cello = new Cello("Rialto VC 730", "Stenton", "Laminated", 282.78, 434.00, "zan zan",4, "1/4"); ...
/* * 2012-3 Red Hat Inc. and/or its affiliates and other contributors. * * 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 requi...
package datastructure.sort; /** * @author by dsy * @Classname QuickSelect * @Description TODO * @Date 2022/12/30 10:47 */ public class QuickSelect { public static void main(String[] args) { int[] arr = {4, 7, 1, 3, 9, 0, 8, 5, 20}; System.out.println(quickSelect(arr, 2)); } public st...
package com.xujiangjun.archetype.web.interceptor; import lombok.extern.slf4j.Slf4j; import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * 自定义Http请求拦截器 * * @author xujiangjun * @since 2018.11.26 ...
package com.example.maximeglod.fbta; import com.github.mikephil.charting.data.Entry; import java.util.Comparator; import java.util.function.Function; import java.util.function.ToDoubleFunction; import java.util.function.ToIntFunction; import java.util.function.ToLongFunction; /** * Comparator for comparing Entry-ob...
package com.commercetools.pspadapter.payone.notification.common; import com.commercetools.payments.TransactionStateResolver; import com.commercetools.pspadapter.payone.domain.payone.model.common.Notification; import com.commercetools.pspadapter.payone.domain.payone.model.common.NotificationAction; import com.commercet...
package com.augment.golden.bulbcontrol.Beans; import android.app.Activity; import android.content.Context; import com.augment.golden.bulbcontrol.Adapters.BulbGroupListAdapter; import com.augment.golden.bulbcontrol.Adapters.SmartBulbListAdapter; public class TaskInfo { private Context context; private Activit...
package com.java.app.controller; import java.util.ArrayList; import java.util.Arrays; import java.util.Date; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.codehaus.jackson.map.ObjectMapper; import org.slf4j.Logger; import org.slf4j.LoggerFactor...
package com.bodansky.videochat.domain;/* * Created by Adam Bodansky on 2017.05.26.. */ import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; @Getter @AllArgsConstructor @NoArgsConstructor public enum Role { USER("User"), ADMIN("Admin"); private String roleName; }
package org.sohil.ancrud.dao; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Hibernate; import org.hibernate.criterion.Order; import org.hibernate.criterion.Restrictions; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.sohil.ancrud.model.User; import org.springframework...
package com.tt.miniapp.audio; import android.content.Context; import android.media.AudioManager; public class AudioManagerHelper { public AudioManager.OnAudioFocusChangeListener mAudioFocusChangeListener; private AudioManager mAudioManager; public AudioManagerHelper(Context paramContext, final A...
package com.pas.mall.service; import com.pas.mall.entity.ResultPage; import com.pas.mall.pojo.TbContent; import java.util.List; public interface ContentService { public List<TbContent> findAll(); public void update(TbContent tbContent); public void add(TbContent tbContent); public TbContent findOne(L...
package com.pine.template.demo; import com.pine.template.base.BaseConstants; public interface DemoUrlConstants extends BaseConstants { String H5_WanAndroidUrl = "https://www.wanandroid.com"; }
package org.houqi.controller.annotation; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.houqi.domain.User; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.Requ...
package threads; public class Exemplo4 implements Runnable { public void run() { for (int i = 1; i < 4; i++) { System.out.println("Thread " + Thread.currentThread().getName()); } } }
// Digraph.java // // Simple class to represent a directed graph. public class Digraph { private boolean[][] edge; public Digraph(int numNodes) { edge = new boolean[numNodes][numNodes]; // By default, all boolean array values are false, // so there are no edges in the graph. }...
package org.example.broker.core.controller; import lombok.RequiredArgsConstructor; import org.example.broker.api.domain.Client; import org.example.broker.core.service.client.ClientService; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.*; @RestController @RequestMapping("cl...
/* * Copyright 2009 HPDI, LLC * * 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...
package boundary; import java.text.NumberFormat; import javax.ejb.Stateless; import javax.json.Json; import javax.json.JsonBuilderFactory; import javax.json.JsonObject; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; /** * * @author romanm */ @Stateless @Path("picreversdiscountrest"...
class TestB{ public static void main(String ar[]) { int p=22; int r=19; int t=5; //double tot=a+b+c; double si=p*r*t/100.0; //System.out.println("a="+a+" b="+b+" c="+c); System.out.println("SI is "+si); } }
package com.hiwes.cores.thread.thread1.Thread0214; /** * 停止线程是在多线程开发时很重要的技术点,可以对线程的停止进行有效的处理。 * 停止线程在Java语言中并不像break语句那么干脆,需要一些技巧性的处理。 * 1.停止不了的线程====>interrupt()方法,仅仅是在当前线程中打一个停止的标记,并不是真的停止线程。 */ public class MyThread01 extends Thread { @Override public void run() { super.run(); for(int i...
package Domain; import Domain.Effetti.Effetto; import Exceptions.DomainException; import org.junit.Before; import org.junit.Test; import java.util.ArrayList; import static org.junit.Assert.*; /** * Created by Michele on 04/06/2017. */ public class CartaPersonaggioTest { CartaPersonaggio cartaPersonaggio; ...
package com.beiyelin.monitor.controller; import com.beiyelin.common.resbody.ResultBody; import com.beiyelin.monitor.entity.LoginTracker; import com.beiyelin.monitor.service.LoginTrackerService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; imp...
package string; import org.junit.Test; import static org.junit.Assert.assertEquals; public class Exercise06Test { @Test public void test_shortenString() { assertEquals(new Exercise06().shortenString("abcccceeeeeefd"), "abc4e6fd"); assertEquals(new Exercise06().shortenString("aabbbbbbbbbbbbbcc"...
package com.zhouyi.business.core.service; import com.zhouyi.business.core.model.*; import com.zhouyi.business.core.vo.SysRoleVo; import java.util.List; public interface SysRoleService { Response findSysRoleById(String id); List<SysRole> findSysRoleListBySysRole(SysRoleVo sysRoleVo); void saveSysRole(S...
package com.sunjian.services.impl; import com.sunjian.datas.Datas2; import com.sunjian.pages.FirstPage; import com.sunjian.pages.HmcjPage; import com.sunjian.pages.IframePage; import com.sunjian.services.Hmcj; import com.sunjian.utils.MyLog; import com.sunjian.utils.MyWait; import org.openqa.selenium.By; import org.op...
package com.rc.portal.vo; import java.util.Date; public class TMemberArchivesMedicalRecord { private Long id; private Long memberId; private String hospital; private String doctor; private String department; private Date createDt; private String medicalRecordUrl; private String ...
package is.hi.hbv501g.team28.mid.Controllers; import is.hi.hbv501g.team28.mid.Persistence.Entities.Task; import is.hi.hbv501g.team28.mid.Services.TaskService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org...
package com.kenji47.volley_work.instagram_model; import java.util.List; /** * Created by kenji1947 on 28.07.2015. */ public class Root { public Root() { } public List<InstagramPost> getData() { return data; } public void setData(List<InstagramPost> data) { this.data = data; ...
package com.tencent.mm.model; import com.tencent.mm.sdk.e.d; import com.tencent.mm.sdk.e.f; import com.tencent.mm.storage.u; import java.util.List; public interface af extends d<u>, f { String gT(String str); u ih(String str); u ii(String str); String ij(String str); String ik(String str); ...
package com.xwq520.extend; public class Child extends Parent { // 子类不能继承父类的构造器(构造方法或者构造函数),但是父类的构造器带有参数的,则必须在子类的构造器中显式地通过super关键字调用父类的构造器并配以适当的参数列表。 // 如果父类有无参构造器,则在子类的构造器中用super调用父类构造器不是必须的 // 如果没有使用super关键字,系统会自动调用父类的无参构造器。 // super 表示使用它的类的父类。super 可用于: // 调用父类的构造方法; // 调用父类的方法(子类覆盖了父类的方法时); // 访问父类的数据域(可...
package com.jlgproject.fragment; import android.content.Intent; import android.text.TextUtils; import android.util.Log; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.EditText; import android.widget.Spinner; import c...
package com.jkb.yanolja.domain.motel; import java.sql.Timestamp; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; @Data @Builder @AllArgsConstructor @NoArgsConstructor public class Motel { private int id; private String motelName ; pr...
package com.dishcuss.foodie.hub.Fragments; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View...
package com.tencent.mm.plugin.fts.ui.a; import android.content.Context; import android.content.res.Resources; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import com.tencent.mm.plugin.fts.a.d.a.a.b; import ...
//package action05; // //public class MainCalc { // public static void main(String[] args) { // CalcProff4Example calc = new CalcProff4Example(); // String str = "10*15="; // for(char p:str.toCharArray()){ // System.out.println("Input "+p); // calc.inChar(p); // System.out.println(); // } // // // } //}
package bgu.spl171.net.srv.bidi; import java.util.HashMap; import java.util.Iterator; import java.util.Map.Entry; public class ConnectionsImpl<T> implements Connections<T> { private HashMap<Integer, ConnectionHandler<T>> connectionList = new HashMap<>(); private HashMap<Integer, String> nameList = new HashMap<>();...
package by.dt.boaopromtorg.web.controller; import by.dt.boaopromtorg.entity.Product; import by.dt.boaopromtorg.entity.dto.PriceDTO; import by.dt.boaopromtorg.entity.dto.ProductSearchDTO; import by.dt.boaopromtorg.service.ProductService; import org.springframework.beans.factory.annotation.Autowired; import org.springfr...
package org.gmart.devtools.java.serdes.codeGenExample.featuresTestExample.generatedFilesCustomizationStubs; import java.util.Map; import java.util.function.Function; import org.gmart.devtools.java.serdes.codeGen.javaGen.model.DeserialContext; import org.gmart.devtools.java.serdes.codeGenExample.utils.ReflUtil; publi...
package org.research.flume.interceptor; import com.google.common.collect.Lists; import org.apache.flume.Context; import org.apache.flume.Event; import org.apache.flume.interceptor.Interceptor; import java.util.List; import java.util.Map; /** * @fileName: TypeInterceptor.java * @description: 自定义Flume拦截器 * @author:...
/* * TCSS 305 - Shapes * */ package model; import java.awt.Color; import java.awt.Shape; /** * Shape class holds various shapes. * * @author mohibkohi * @version 1.0. */ public class Shapes { /** * Instance field shape. */ private final Shape myShape; /** * Instance field color...
package com.jt.collections; import java.util.ArrayList; import java.util.Collections; import java.util.Deque; import java.util.LinkedList; import java.util.List; import org.junit.Ignore; import org.junit.Test; public class ListExamples extends MyFormatter{ @Ignore @Test public void addelements() { List<St...
package fr.lteconsulting.formations; import java.io.IOException; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class Vues { public static void afficherEmptyMessage( HttpServletRequest req, ...
package top.wangruns.nowcoder.sword2offer; /** * * 题目描述 牛客最近来了一个新员工Fish,每天早晨总是会拿着一本英文杂志,写些句子在本子上。 同事Cat对Fish写的内容颇感兴趣,有一天他向Fish借来翻看,但却读不懂它的意思。例如,“student. a am I”。 后来才意识到,这家伙原来把句子单词的顺序翻转了,正确的句子应该是“I am a student.”。 Cat对一一的翻转这些单词顺序可不在行,你能帮助他么? * */ public class P44_翻转单词顺序列 { public String ReverseSentence(String ...
package collection; import java.util.*; /** * Created with IntelliJ IDEA. * User: mt * Date: 13-7-1 * Time: 下午4:46 */ public class MapScoreMap<K extends Comparable, V extends Comparable<? super V>> extends TreeMap<K, V> { private final HashMap<K, V> base; public MapScoreMap(final HashMap<K,...
package com.example.springlearning; import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; public class StringTypeAdapter { /* * TypeAdapterEnum - Enum type to hold all types of Adapter / */ public enum TypeAdapterEn...
package com.huashun.lockerrobot.exception; public class InvalidTicketException extends RuntimeException { }
package com.ifli.mbcp.service; import java.util.List; import org.springframework.stereotype.Component; import com.ifli.mbcp.domain.AudioVideo; @Component public interface AudioVideoService extends LookupService { /** * gets list of audio video by criteria * @param languageName * @param type ...
public class Anagram1 { static int[] chars = new int[26]; public static void main(String[] args) { isAnagram(null); isAnagram(""); isAnagram("abc"); isAnagram("aabb"); isAnagram("ababababa"); isAnagram("abcdcbbs"); isAnagram("abbccscsabcb"); } p...
package exer; public class Day06 { public static void main(String[] args) { // compare(100,120); // getSum(6, 7, 2, 12, 2121); getString('a','c','b'); } // 比较两个整数是否相等 public static boolean compare(int a, int b) { /*if (a == b) { return true; } else { return false; }*/ // r...
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package frc.robot.commands.Auto; import edu.wpi.first.wpilibj.command.CommandGroup; import java.util.List; import edu...
package ru.itis.springboot.security; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder...
package com.gtfs.action; import java.io.Serializable; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.faces.application.FacesMessage; import javax.faces.context.FacesContext; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import o...
package com.stryksta.swtorcentral.util; import android.content.Context; import android.content.res.Resources; import android.graphics.ColorFilter; import android.graphics.ColorMatrixColorFilter; import android.support.annotation.Nullable; import android.util.TypedValue; import android.view.View; public class Utils { ...
package org.ebmdev.junitapp.ejemplos.models; import org.ebmdev.junitapp.ejemplos.exceptions.DineroInsuficienteException; import org.junit.jupiter.api.*; import org.junit.jupiter.api.condition.*; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.CsvFileSource; import org.junit....
package abstract_interface; public interface ThongTinGiaDinh extends ThongTinGiaDinhChiTiet { String maSo = "XYZ305"; void updateThongTin(String thongTinGiaDinh); }
package org.nishkarma.book.model; public enum Cover { PAPERBACK, HARDCOVER, DUST_JACKET }
package com.espendwise.ocean.common.emails.objects; public interface AccountEmailObject extends EmailObject { public String getName(); }
package interviews.amazon.myoa; import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedList; import java.util.List; import java.util.Queue; public class ClosestCommonManager { public static class Employee { public int id; public String name; public List<Employee> re...
package assemAssist.model.factoryline.assemblyLine; import java.util.Collection; import java.util.List; import java.util.Map; import org.joda.time.Duration; import assemAssist.model.clock.clock.Clock; import assemAssist.model.company.VehicleModel; import assemAssist.model.factoryline.workStation.WorkStation; import...
package me.punish; import org.bukkit.Bukkit; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.plugin.PluginManager; import org.bukkit.plugin.RegisteredServiceProvider; import org.bukkit.plugin.java.JavaPlugin; import me.punish.Cache.CacheManager; import me.punish.Commands.CheckIPComm...
package powermocking; /** * Created by RCEAZ31 on 9/03/2016. */ public class IntValue { private int value; public IntValue(int value) { this.value = value; } public int getValue() { return value; } }
package chat.errors; /** */ public interface ChatErrorCodes { public static final int CODE_CORE = 10000; public static final int ERROR_ONLINESERVER_NOT_FOUND = CODE_CORE + 121; public static final int ERROR_ONLINESERVER_UPDATE_FAILED = CODE_CORE + 122; public static final int ERROR_ONLINESERVER_DELETE...
package com.tencent.mm.pluginsdk.ui.chat; import android.os.Message; import android.view.ViewGroup.LayoutParams; import com.tencent.mm.sdk.platformtools.ag; class ChatFooter$24 extends ag { final /* synthetic */ ChatFooter qMv; ChatFooter$24(ChatFooter chatFooter) { this.qMv = chatFooter; } ...
package pucrs.java.maven.pets; import static org.junit.Assert.assertNotNull; import org.junit.Test; import pucrs.java.maven.pets.Pet; import pucrs.java.maven.pets.PetCatalog; import pucrs.java.maven.pets.model.Cat; public class PetsCatalogTest { @Test public void testCatCatalogIsAvailable() { PetCa...
package com.capgemini.tournament; import com.capgemini.tournament.model.Play; import com.capgemini.tournament.model.Team; import com.capgemini.tournament.model.TeamList; import java.util.ArrayList; import java.util.List; import java.util.Random; public class App { // Set the fields // Runs the application...
package ca.antonious.habittracker.addhabit; import ca.antonious.habittracker.interactions.HabitInteractionsFactory; import ca.antonious.habittracker.IController; /** * Created by George on 2016-09-04. * * AddHabitController is an implementation of IController that controls * an IAddHabitView. It exposes a method ...
package com.example.icebuild2; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.fragment.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterVie...
package com.philippe.app.domain; import lombok.Data; /** * A Notification with 2 mandatory fields: code and description, 1 optional field: action. */ @Data public class Notification { private final String code; private final String description; private String action; }
package de.propra2.ausleiherino24.features.imageupload; import java.io.DataInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.nio.file.Files; import javax.servlet.http.HttpServletResponse; import org.apache.tomcat.util.http.fileupload.IOUtils; import org.springfra...
package com.xwechat.api.wxapp; import java.io.IOException; import java.io.InputStream; import java.nio.file.Files; import java.nio.file.Paths; import java.nio.file.StandardCopyOption; import okhttp3.RequestBody; import okhttp3.Response; import com.xwechat.api.Apis; import com.xwechat.api.AuthorizedApi; import com.xw...
/** * */ package com.spower.business.therapy.service.spring; import java.lang.reflect.InvocationTargetException; import java.util.Date; import java.util.List; import com.spower.basesystem.common.Tools; import com.spower.basesystem.common.command.Page; import com.spower.basesystem.manage.valueobject.User...
package com.coldenergia.springcontextsharedamongwars.app2.controller; import com.coldenergia.springcontextsharedamongwars.app2.processing.App2NothingProcessor; import com.coldenergia.springcontextsharedamongwars.common.Nothing; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.w...
package com.mes.old.meta; // Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final /** * MdsBomForMes generated by hbm2java */ public class MdsBomForMes implements java.io.Serializable { private MdsBomForMesId id; public MdsBomForMes() { } public MdsBomForMes(MdsBomForMesId id) { this.id = id; } pub...
package com.tencent.mm.plugin.account.bind.ui; import android.content.Intent; import com.tencent.mm.bg.d; import com.tencent.mm.plugin.account.bind.ui.d.1; import com.tencent.mm.plugin.account.friend.a.a; import com.tencent.mm.pluginsdk.ui.applet.a.b; import com.tencent.mm.ui.e; class d$1$2 implements b { final /...
import java.io.*; import java.util.StringTokenizer; public class Sort012 { public static void main(String[] args) throws Exception { FastScanner fs = new FastScanner(); Print printer = new Print(); int t = fs.nextInt(); while (t > 0) { int n = fs.nextInt(); ...
package tasks; public class Palindrome { /** * Сheck whether the string is palindrome * * @param string * @return true if string is palindrome, false if no */ public static boolean isPalindrome(String string) { char[] charArray = string.replaceAll("[^A-Za-zА-Яа-я0-9]", "").to...
package com.takshine.wxcrm.service; /** * 微信调用siebel接口服务 * @author liulin * */ public interface Wx2SiebelService { }
package com.tencent.mm.g.c; import android.content.ContentValues; import android.database.Cursor; import com.tencent.mm.sdk.e.c; public abstract class dn extends c { private static final int cMm = "productId".hashCode(); private static final int cMn = "xmlContent".hashCode(); private static final int cMo ...
package secuenciasIterables; //Solo es visible dentro del paquete //class NodoDoble<Informacion extends iCloneableComparable> { class NodoDoble<Informacion> { private Informacion dato=null; private NodoDoble<Informacion> siguiente=null; private NodoDoble<Informacion> anterior=null; NodoDoble (I...
package aula3exercicio10; public class Piloto { String nome; String scuderia; int volta; }
package models.forms; public class AbstractFormModel { }
package com.mrhan.database; import com.mrhan.database.mrhanDaos.ColumType; import java.lang.annotation.*; /** * 作用于实体的注解,表示,当前实体类所对应的数据库表 */ @Target(ElementType.FIELD) @Inherited @Documented @Retention(RetentionPolicy.RUNTIME) public @interface Colum { /** * 对应隐射的字段名称 * * @return */ Str...
package syntax; public class Evaluator { public Term step(Term t) { return t.evaluateSingleStep(); } // evaluate reduces a term to normal form. public Term evaluate(Term t) { // FIXME this is gross. try { while (true) { System.out.println(t); t = t.evaluateSingleStep(); ...
package com.design.pattern.listener.source; import com.design.pattern.listener.MyEvent; import com.design.pattern.listener.handler.EventListener; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * @author zhangbingquan * @desc 事件源实现类 * @time 2019/8/23 0:45 */ public class MySource im...
package com.tencent.mm.plugin.appbrand.jsapi.version; import com.tencent.mm.ipcinvoker.c; import com.tencent.mm.ipcinvoker.extension.XIPCInvoker; import com.tencent.mm.ipcinvoker.type.IPCString; import com.tencent.mm.plugin.appbrand.config.r; import com.tencent.mm.plugin.appbrand.l; import org.json.JSONObject; public...
package StepDefinitions; import static org.junit.Assert.*; import Exceptions.ActivityAlreadyExistsException; import Exceptions.ActivityNotFoundException; import Exceptions.AdminNotFoundException; import Exceptions.DeveloperNotFoundException; import Exceptions.NotAuthorizedException; import Exceptions.OperationNotAllo...
package couchbase.sample.dao; import couchbase.sample.exception.ArgException; public class CustomerDAO extends BaseDAO{ public CustomerDAO() throws ArgException { super(); } /** * * @param host - Couchbase server FQDN * @param user - RBAC user that has access to access data from the bucket * @param pas...
package miniProject; import java.util.Calendar; import java.util.Date; public class ParkDomain { private String carNum;//차량번호 private Date inTime;//들어온시간 private Date outTime;//나간시간 public ParkDomain() { this.carNum = ""; this.inTime = Calendar.getInstance().getTime(); // this.outTi...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
package com.xampy.namboo.api.firestoreNamboo; import com.xampy.namboo.api.dataModel.UserNambooFirestore; import com.google.android.gms.tasks.Task; import com.google.firebase.firestore.CollectionReference; import com.google.firebase.firestore.DocumentSnapshot; import com.google.firebase.firestore.FirebaseFirestore; imp...
package fi.jjc.graphics.buffers; import org.lwjgl.opengl.GL11; /** * Enumeration of buffer types. * * @see fi.jjc.graphics.buffers.BufferHandler * @author Jens ┼kerblom */ public enum Buffer { /** Current color buffer. */ BUFFER_COLOR(null, GL11.GL_COLOR_BUFFER_BIT), /** Depth buffer. */ BUFFER_DEPTH(new I...
package com.gtfs.bean; import java.io.Serializable; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinC...
package org.apache.hadoo.yarn.server.resourcemanager.dockermonitor; import java.util.List; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.yarn.api.records.ApplicationId; import org.apache.hadoop.yarn.api.records.ContainerId; import org.apache.hadoop.yarn.api.records.Resource; public interfac...
package category.linkedList; public class ReverseBetween { public ListNode reverseBetween2(ListNode head, int m, int n) { ListNode dummy = new ListNode(0); dummy.next = head; ListNode p = dummy; for (int i = 1; i < m; i++) p = p.next; p.next = reverse(p.next, n - m + 1); return dummy.next; } priva...
/* * 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 com.example.codetribe1.constructionappsuite.dto; import java.io.Serializable; /** * @author aubreyM */ public class Invoic...