text
stringlengths
10
2.72M
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.List; public class Textquery { public static void main(String[] args){ BufferedReader br; boolean flag ...
package com.zoneigh.clappybird.model; public class DesktopGameScreen implements IGameScreen { private int width; private int height; public DesktopGameScreen (int width, int height) { this.width = width; this.height = height; } @Override public int getWidth() { return this.width; } ...
import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; /** * @fileName: H5Pay.java * @description: H5Pay.java类说明 * @author: by echo huang * @date: 2020-04-18 16:52 */ public class H5Pay implements InvocationHandler { @Override public Object invoke(Object proxy, Method method, Object...
package com.revature.serialization; /** * Enums are special datatypes that enable for a variable * to be a set of predefined constants * */ public enum Color {BROWN, WHITE, BLACK, GREY}
package tw.skyarrow.ehreader.app.search; import android.database.sqlite.SQLiteDatabase; import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widg...
package com.wt.jiaduo.dto.jpa; // Generated 2018-4-3 10:51:07 by Hibernate Tools 5.2.8.Final import static javax.persistence.GenerationType.IDENTITY; import java.util.HashSet; import java.util.Set; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax...
package leetcode; /* * Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). You are given a target value to search. If found in the array return its index, otherwise return -1. You may assume no duplicate exists in the ...
/* * 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.blog.blog.pets.models; import javax.persistence.*; import java.io.Serializable; @Entity @Table(name = "pet_details") public class PetDetail implements Serializable { @Id @GeneratedValue private long id; @Column(name = "is_sterile") private boolean sterile; @Column(name = "person...
package egg.project000.models; public class Drug { private int drugID; private String drugName; private static final Drug nullDrug = new Drug(-1, "you got the nullDrug obj"); /*Constructors*/ public Drug() {} public Drug(int a, String b) {drugID = a; drugName = b;} /*getters*/ public String getDrugName() ...
/* Generated By:JavaCC: Do not edit this line. AnalizadorSintacticoDescConstants.java */ package tiny1.analizadorsintactico.desc; public interface AnalizadorSintacticoDescConstants { int EOF = 0; int LETRA = 50; int DIGP = 51; int DIG = 52; int PARTEENT = 53; int PARTEDEC = 54; int ENT = 55; int LREAL...
package com.travel.repositories; import com.travel.models.Accommodation; import com.travel.models.Location; import com.travel.models.User; import org.springframework.data.jpa.repository.JpaRepository; import java.util.Optional; import java.util.Set; public interface AccommodationRepository extends JpaRepository<Acco...
package dev.etna.jabberclient.manager; import java.util.ArrayList; import java.util.HashMap; import dev.etna.jabberclient.model.Contact; import dev.etna.jabberclient.xmpp.XMPPChat; /** * Created by Cedric Olivier on 14/07/16. */ public class ChatManager { //////////////////////////////////////////////////////...
package com.movietoy.api.domain.movieList; import org.springframework.data.jpa.repository.JpaRepository; public interface MovieListRepository extends JpaRepository<MovieList, Long> { }
package mobi.wrt.oreader.app; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.BaseColumns; import android.support.v4.content.Loader; import android.support.v4.view.ViewP...
package com.ricex.cartracker.android.data.dao.impl; import com.j256.ormlite.dao.BaseDaoImpl; import com.j256.ormlite.support.ConnectionSource; import com.ricex.cartracker.android.data.dao.ReaderLogDao; import com.ricex.cartracker.android.data.entity.ReaderLog; import java.sql.SQLException; /** * Created by Mitchell...
package com.example.demo.controller; import com.example.demo.entity.SysUser; import com.example.demo.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.security.access.prepost.PostAuthorize; impor...
package org.nyer.sns.renren; import java.util.Map; import net.sf.json.JSONObject; import org.apache.http.HttpEntity; import org.nyer.sns.core.AbstractWeiboProtocal; import org.nyer.sns.core.WeiboResponse; import org.nyer.sns.http.CachedHttpResponse; import org.nyer.sns.http.PrepareRequest; import org.nyer.sns.oauth....
package com.mei.tododemo.tools; import java.text.SimpleDateFormat; import java.util.Date; /** * created by meishenbo * 2018/12/13 */ public class Tools { public static String currentDate(){ Date date = new Date(); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")...
package Environment; public class DehumidifierOnCommand implements Command { Dehumidifier dehumidifier; public DehumidifierOnCommand(Dehumidifier dehumidifier) { this.dehumidifier = dehumidifier; } public void execute() { dehumidifier.on(); } public void undo() { dehumidifier.off...
package com.jack.jkbase.util; import java.io.FileInputStream; import java.io.InputStream; import java.util.Properties; public class ConfigInfo { public static final String PROPERTIES_AUTH = "auth.properties";//车站授权文件 public static final String PROPERTIES_IP="ip.properties";//检票口 ip文件 public static final String P...
package com.lukian.creditmicroservice.service; import com.lukian.creditmicroservice.entity.Product; import com.lukian.creditmicroservice.exception.ProductNotFoundException; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import org.springframework.web.client.RestTemplate; import java....
package io.naztech.LombokandSlf4j; import lombok.AllArgsConstructor; import lombok.Data; @Data @AllArgsConstructor public class Person { private String name; private int age; }
/* * 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 herencia; /** * * @author OHMASTER */ public class Dog2 extends Dog { double portion; }
package foodchain.products; import foodchain.states.GrowingState; import java.util.ArrayList; import java.util.HashMap; /** * Class for apple product in simulation. */ public class Apple extends Product { /** * Constructs apple with default parameters. */ public Apple() { this.state = new...
package io.zipcoder.casino.games; import io.zipcoder.casino.gameTools.Card; import io.zipcoder.casino.player.BlackJackPlayer; import io.zipcoder.casino.gameTools.Deck; import io.zipcoder.casino.player.Player; import io.zipcoder.casino.utilities.Console; import java.util.ArrayList; public class Blackjack extends Game...
package driver; import java.util.Hashtable; import javax.naming.Context; import javax.naming.NamingEnumeration; import javax.naming.NamingException; import javax.naming.directory.Attributes; import javax.naming.directory.DirContext; import javax.naming.directory.InitialDirContext; import javax.naming.direct...
/* * 계단 오르기 * http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&wr_id=792&sca=3050 */ package dynamic_programming1; import java.util.Scanner; public class jungol1520 { static int[][] d = new int[301][3]; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt();...
package hu.mod.MalasitsA; import hu.mod.demo.models.person; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @Component public class dummy { @Value("${demo.app.stringem}") private String s; public person Hello(){ person p = new person(1,"...
package File; /** * * @author Frédéric Vitzikam * @author Hamza Chouh * @version 1.0 * Classe Boolean représentant un flottant pour la génération de fichiers de configuration. */ public class mDouble extends Information { /** * Information stock�e, ici sous forme d'un double. */ private double info; ...
package com.Nicole.webServices.userservice; import com.Nicole.webServices.ui.model.request.UserDetailsRequestModel; import com.Nicole.webServices.ui.model.response.UserRest; public interface UserService { UserRest createUser(UserDetailsRequestModel userDetails); }
package pl.edu.pw.mini.gapso.function; import java.util.Arrays; public abstract class FunctionWhiteBox extends Function { private boolean optimumVisited = false; public abstract double[] getOptimumLocation(); protected boolean checkIfOptimumVisited(double[] x) { optimumVisited = Arrays.equals(x,...
class TesteString { public static void main(String ...args) { String a = "casa"; a+="1"; System.out.println("casa1" == a); // false pq usou + String b = "lobo"; String c = "cachorro"; String d = b + c ; System.out.println("lobocachorro" == d); // false pq usou + System.out.println(b.concat(c)...
package pt.smartthought.url.shortner.domain; import lombok.Getter; import java.util.UUID; @Getter public class ShortUrl { private UUID shortUrl; private String originalUrl; private ShortUrl() { } public ShortUrl(UUID shortUrl, String originalUrl) { this.shortUrl = shortUrl; this.orig...
package database; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger; public class DatabaseConnection { public static Connection conn; public static Connection set_up_connection() { ...
package cn.bs.zjzc.ui; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.text.Editable; import android.text.TextWatcher; import android.view.View; import android.widget.CheckBox; import android.widget.EditText; import and...
package net.julisapp.riesenkrabbe.background.utilities; import java.net.InetAddress; /** * Created by antonio on 25.01.17. * <p> * Utilities that are related to all things connections, but unrelated to the actual sync with * the server. * <p> * Currently not in use. */ class ConnectionUtilities { private...
package org.bashemera.openfarm.repository; import org.bashemera.openfarm.model.Config; import org.springframework.data.mongodb.repository.MongoRepository; public interface ConfigRepository extends MongoRepository<Config, String> { }
package de.zarncke.lib.cache; import de.zarncke.lib.io.store.Store; /** * A data block which is backed by a Store and refetched if the modification date changes. * * @author Gunnar Zarncke <gunnar@zarncke.de> */ public class CheckModfiedContent extends StoreContent { private static final long serialVer...
package com.mes.cep.meta.operationsPerformanceModel; /** * @author Stephen°§Wen * @email 872003894@qq.com * @date 2017ńÍ4‘¬19»’ * @Chinesename ∂őŌž”¶ */ public class SegmentResponse { }
package game.pieces; import game.Player; import game.extra.Rank; public class Miner extends Piece { public Miner(Player player){ super(player, 3); } @Override public int compare(Piece piece){ if (piece.getRank() == Rank.BOMB){ return 11; } return rank.toInt...
package com.tencent.mm.b; import android.animation.ValueAnimator; import android.animation.ValueAnimator.AnimatorUpdateListener; import android.graphics.Rect; import android.graphics.RectF; import com.tencent.mm.view.b.a; public final class d extends b { public a bwB; public float bwC; public float bwD; ...
package com.codepath.apps.restclienttemplate.adapters; import android.content.Context; import android.database.Cursor; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.CursorAdapter; import android.widget.ImageButton; import android.widget.ImageView; im...
/* * Copyright 2017 Johns Hopkins University * * 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 ...
package com.tencent.mm.plugin.sns.model; class aw$1 implements Runnable { final /* synthetic */ aw nsc; aw$1(aw awVar) { this.nsc = awVar; } public final void run() { aw.a(this.nsc); } }
package it.unical.asd.group6.computerSparePartsCompany.data.entities; import javax.persistence.*; import java.time.LocalDate; import java.util.Objects; @Entity @Table(name="EMPLOYEE") public class Employee { @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name="ID") private Long id; ...
package com.company.carseller.entity; import java.util.Objects; public class Model { private int modelId; private int brandId; private String model; public int getModelId() { return modelId; } public int getBrandId() { return brandId; } public String getModel() { ...
package com.example.magdam.handshake; import android.app.Notification; import android.app.Service; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.SharedPreferences; import android.hardware.Sensor; impo...
package com.aishang.model; import java.util.Date; public class Admin { private String admin_id; private String username; private String password; private Integer power; private Date date; @Override public String toString() { return "Admin{" + "admin_id='" + admin_i...
package idGenerators; import java.io.FileWriter; import java.io.IOException; import java.io.Serializable; /** * This class handles and assigns doc ID based on the order in which they are read. * */ public class DocIdGenerator implements Serializable { private static final long serialVersionUID = -3574390161623137...
package com.koreait.mvc19; import java.text.DateFormat; import java.util.Date; import java.util.Locale; import org.json.simple.JSONObject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind...
package amu.electrical.deptt.fragment; import amu.electrical.deptt.MainActivity; import amu.electrical.deptt.R; import amu.electrical.deptt.utils.Colors; import amu.electrical.deptt.utils.FacultyMember; import amu.electrical.deptt.utils.ListAdapter; import android.annotation.TargetApi; import android.graphics.drawable...
package com.tt.miniapp.titlemenu.item; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.view.View; import com.tt.miniapp.about.AboutActivity; import com.tt.miniapp.debug.DebugInfoUtil; import com.tt.miniapp.titlemenu.MenuDialog; import com.tt.miniapp.t...
/** */ package nassishneiderman; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Branching Block</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * <ul> * <li>{@link nassishneiderman.BranchingBlock#getCondition <em>Condition</em>}</li> * <li...
package br.com.slack.fabrica.txt; import br.com.slack.fabrica.Arquivo; import br.com.slack.fabrica.FabricaDeArquivo; public class FabricaDeArquivoTXT implements FabricaDeArquivo{ @Override public Arquivo criarArquivo(String nome){ return new ArquivoTXT("ArquivoTXT"); } }
package com.conorh.codetest.api.constants; public class Endpoints { public static final String PERSON = "/person"; public static final String ADDRESS = "/address"; }
package com.accp.pub.mapper; import com.accp.pub.pojo.Health; public interface HealthMapper { int deleteByPrimaryKey(Integer healthid); int insert(Health record); int insertSelective(Health record); Health selectByPrimaryKey(Integer healthid); int updateByPrimaryKeySelective(Health record); ...
package com.cngl.bilet.repository; import com.cngl.bilet.entity.Musteri; import org.springframework.data.jpa.repository.JpaRepository; public interface MusteriRepository extends JpaRepository<Musteri,Long>{ }
package no.nav.vedtak.felles.prosesstask.api; import no.nav.vedtak.exception.TekniskException; import no.nav.vedtak.feil.Feil; public class ProsessTaskException extends TekniskException { public ProsessTaskException(Feil feil) { super(feil); } }
/* * 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 forms; import Entity.department; import company.Tools; import javax.swing.JOptionPane; /** * * @author Wafaa */ public cla...
package com.chris.projects.fx.ftp.core; import static org.junit.Assert.*; public class SpotOrderBookServiceTest { }
package com.manage.salary.salary; import com.manage.salary.employee.Employee; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.time.LocalDateTime; import java.util.ArrayList; impor...
package com.smxknife.utils.out; /** * @author smxknife * 2018/11/9 */ public final class Print { private Print() {} public static void println(Object ...contents) { if (contents == null) return; for (Object content : contents) { // content. } } }
package kodlamaio.hrms.entities.concretes; import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.OneToMany; import javax.persistence.Prim...
package com.fleet.alg; import java.util.Arrays; /** * 给定一个包含 0, 1, 2, ..., n 中 n 个数的序列,找出 0 .. n 中没有出现在序列中的那个数。 * <p> *   * <p> * 示例 1: * <p> * 输入: [3,0,1] * 输出: 2 * 示例 2: * <p> * 输入: [9,6,4,2,3,5,7,0,1] * 输出: 8 */ public class MissingNumber { public static void main(String[] args) { int[] n...
/** * */ package com.goodhealth.web.controller; import com.goodhealth.web.entity.News; import com.goodhealth.web.service.NewsService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.stereotype.Controller; import org.springframewo...
package br.com.higornucci.contracheque.dominio; import org.junit.Test; import java.math.BigDecimal; import br.com.higornucci.contracheque.dominio.desconto.CalculadorDeDesconto; import br.com.higornucci.contracheque.dominio.desconto.inss.CalculadorDeINSS; import br.com.higornucci.contracheque.dominio.real.Real; impo...
package Estructuras; public class Arbol { Linked_List listadragones; public Linked_List graficarArbol(Linked_List listaDragones){{ if (listaDragones.getNodeinIndex(0).getNext() != null){ listaDragones.getNodeinIndex(0).setPos(listaDragones.getNodeinIndex(0).getPo...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ui; /** * * @author joel */ public class MainUI extends javax.swing.JFrame { /** * Creates new form MainUI */ public MainUI() { initComponents(); } /** * This met...
/** * Copyright (c) 2004-2011 QOS.ch * All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights...
package Exam4; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.FileReader; import java.io.IOException; import java.io.ObjectOutputStream; import java.util.ArrayList; import java.util.List; import Exam3.Item; public class ItemSe...
package com.bit.tatab.main.controller; import java.util.Enumeration; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Resource; import javax.inject.Inject; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.ht...
package com.userdatabase.userdemo.model; public class AccessUserError { private final String message; private AccessUserError(String message) { this.message = message; } public static AccessUserError showMessage(String message) { return new AccessUserError(message); } public String getMessa...
package com.dennistjahyadigotama.soaya.activities.CreateThreadAdapter; import android.net.Uri; /** * Created by Denn on 6/30/2016. */ public class ImagesGetter { String caption; String encoded; Uri uri; public String getCaption() { return caption; } public void setCaption(String ca...
package com.hatenablog.huruyosi.springboot.controllers; import java.util.HashMap; import java.util.Map; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.s...
/** * OpenKM, Open Document Management System (http://www.openkm.com) * Copyright (c) 2006-2015 Paco Avila & Josep Llort * * No bytes were intentionally harmed during the development of this application. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GN...
package produto; import javax.ws.rs.*; import javax.ws.rs.core.*; import io.dropwizard.jersey.params.*; import java.util.*; @Path("/produto") @Produces(MediaType.APPLICATION_JSON) public class ProdutoResource { private ProdutoDAO dao; public ProdutoResource(ProdutoDAO dao) { this.dao = dao; ...
/** * 132. Palindrome Partitioning II * 参考:https://leetcode-cn.com/problems/palindrome-partitioning-ii/solution/dong-tai-gui-hua-by-liweiwei1419-2/ * 这题的解法看起来复杂度很高,但是比其递归回溯来看,反而要好点。 */ class Solution { private void isPalindrome(String s, int n, int left, int right, boolean[][] palindrome) { while (left ...
package com.tencent.mm.plugin.z; import com.tencent.mm.sdk.platformtools.bi; import com.tencent.mm.sdk.platformtools.x; import com.tencent.mm.storage.c; import java.util.Map; public final class b { public static int lst = 0; public static int lsu = 1644429312; public static int lsv = 302122240; public...
package com.example.moviemenaceapimovies.datalayer.SQL; import android.os.Build; import androidx.annotation.RequiresApi; import com.example.moviemenaceapimovies.domain.Viewing; import java.sql.SQLException; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; import java.util.Arra...
package app.akexorcist.googlemapsv2; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class Detail extends Activity { protected void onCreate(Bundle...
package zystudio.cases.javabase.container; import android.util.Log; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Iterator; import java.util.List; import zystudio.mylib.utils.LogUtil; /** * 这个是用来学习Java中的container的case,所谓container,我的理解至少是collection与Map * 这里跟着JA...
package de.jmda.app.uml.diagram.type; import static de.jmda.core.util.CollectionsUtil.asSet; import java.io.IOException; import java.util.Collection; import javax.enterprise.inject.se.SeContainer; import javax.enterprise.inject.se.SeContainerInitializer; import org.junit.AfterClass; import org.junit.Befo...
package uw.cse.dineon.restaurant.active; import java.util.ArrayList; import java.util.Collection; import java.util.List; import uw.cse.dineon.library.CustomerRequest; import uw.cse.dineon.library.animation.ExpandAnimation; import uw.cse.dineon.library.image.DineOnImage; import uw.cse.dineon.library.image.ImageGetCall...
package com.somethinglurks.jbargain.api.user.exception; /** * Thrown when something goes wrong when casting a vote */ public class VoteException extends Exception { public VoteException(String message) { super(message); } }
package com.example.duabatool.cangel; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.media.AudioManager; import android.os.BatteryManager; import android.support.v7.app.AppCompatAc...
public class FizzBuzzTranslate { public static String checkFizzBuzz(int num){ if(num % 3 ==0 && num % 5 ==0){ return "FizzBuzz"; } else if(num % 3 == 0){ return "Fizz"; } else if(num % 5 == 0){ return "Buzz"; } else { ...
package org.lxy.javase_2; /** * @author menglanyingfei * @date 2017-3-9 */ public class Student2 { private String name; private int age; public Student2() {} public Student2(String name, int age) { this.name = name; this.age = age; } public String getName() { return name; } public void setName(String...
package com.smxknife.energy.services.alarm.infras.entity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import java.util.List; /** * @author smxknife * 2021/5/17 */ @Repository public interface AlarmRecordMetaRepository extends JpaRepository<AlarmR...
package com.tencent.mm.plugin.luckymoney.ui; interface LuckyMoneyAutoScrollItem$b { void bbm(); }
package cn.wzvtcsoft.bosdomain.enums; import cn.wzvtcsoft.bosdomain.util.EntityEnumUtil; import javax.persistence.AttributeConverter; import java.lang.reflect.ParameterizedType; public abstract class BosEnumConverter<T extends BosEnum> implements AttributeConverter<T, String> { private Class<T> type; public...
package tree; public class IntegerBST extends BinarySearchTree<Integer>{ // AA Question public boolean hasSum(int target){ return recHasSum(this.root, target, 0); } private boolean recHasSum(Node<Integer> node, int target, int currSum){ if (node == null) return false; if (node....
package me.camouflage100.mcdanger.hooks.factions; import com.massivecraft.factions.entity.Faction; import com.massivecraft.factions.entity.FactionColl; import com.massivecraft.factions.entity.MPlayer; import com.massivecraft.factions.entity.MPlayerColl; import me.camouflage100.mcdanger.MCDanger; import org.bukkit.Bukk...
/* * Copyright (c) 2016. Universidad Politecnica de Madrid * * @author Badenes Olmedo, Carlos <cbadenes@fi.upm.es> * */ package org.librairy.modeler.lda.dao; import lombok.Data; import java.io.Serializable; /** * @author Badenes Olmedo, Carlos <cbadenes@fi.upm.es> */ @Data public class ComparisonRow implemen...
package polydungeons.mixin; import net.fabricmc.loader.api.FabricLoader; import net.minecraft.block.Blocks; import net.minecraft.structure.Structure; import net.minecraft.util.math.BlockPos; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.injectio...
package com.nks.whatsapp.event; import com.nks.whatsapp.Chat; import com.nks.whatsapp.Member; public interface WhatsAppListener extends Listener{ public void memberAdded(Member member); public void chatAdded(Chat chat); }
import java.util.HashSet; public class Intersection_of_two_linked_lists { //Approach: //1. We traverse through one of the list and store them in hashset, meanwhile traverse through the other list and check if any of the nodes is already in the set. public ListNode getIntersectionNode(ListNode headA, ListNode headB...
package com.xj.mapper; import com.baomidou.mybatisplus.mapper.BaseMapper; import com.xj.entity.Room; public interface RoomMapper extends BaseMapper<Room> { }
package thread; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** * Created by ZSL on 2017/8/4. */ public class ReOrderTest { public static void main(String[] args) { ExecutorService excutors = Executors.newFixedThreadPoo...
package AdbUtilPkg; import java.awt.Color; import java.awt.Font; import java.awt.Paint; public class AdbUtil_Definition { public static int EDIT_MAX_GET_STRING = 512; public static int LINE_GAP = 15; public final int TOTAL_SIZE_WIDTH = 680; public final int TOTAL_SIZE_HEIGHT = 440; pu...