text stringlengths 10 2.72M |
|---|
package exemplos.aula09.classeabstrata;
public class TrianguloRetangulo extends Triangulo{
private double hipotenusa;
public TrianguloRetangulo(double cateto1, double cateto2) {
super(cateto1, cateto2);
this.hipotenusa = Math.sqrt(Math.pow(cateto1, 2) + Math.pow(cateto2, 2));
}
public double getHipotenusa(... |
package com.acnbank.api.whoami;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.oauth2.provider.OAuth2A... |
/*
* Copyright (c) 2007, 2008 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE file for licencing information.
*
* Created on Mar 17, 2007
* Author: K. Benedyczak <golbi@mat.umk.pl>
*/
package pl.edu.icm.unity.db;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import ... |
package org.nistagram.campaignmicroservice.data.repository;
import org.nistagram.campaignmicroservice.data.model.Campaign;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import java.util.List;
public interface CampaignRepository extends CrudRepository... |
package com.engin.widget;
import android.content.Context;
import android.graphics.Canvas;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import com.engin.utils.LogUtil;
/**
* Created by zhaoningqiang on 16/6/26.
*/
public clas... |
package com.pepel.games.shuttle.model;
import com.pepel.games.shuttle.model.ports.Port;
import com.pepel.games.shuttle.model.shuttles.Shuttle;
import javax.annotation.Generated;
import javax.persistence.metamodel.ListAttribute;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.St... |
package cn.bdqn.third.impl;
//¼õ·¨
public class Minus implements Operation {
@Override
public double getResult(double num1, double num2) {
return num1 - num2;
}
}
|
package com.sap.als.security;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
public class HashCode {
private static BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
public static String getHashPassword(String password) {
String encodePassword = passwordEncoder... |
package com.davivienda.sara.constantes;
/**
* EstadoProceso.java
*
* Fecha :11 de abril de 2007, 12:20 PM
*
* Descripción : Enumeración con los posibles estados de un proceso
*
* @author :jjvargas
*
* @vesion : $Id
*
* Estados que puede presentar un proceso
* @see com.davivienda.adminatm.mode... |
package com.gaby.exception;
/**
* @Description: 业务异常类
* @Author: wengzhongjie
* @CreateDate: 2019-03-14 14:04
*/
public class BssException extends BaseException{
public BssException() {
}
public BssException(Throwable cause) {
super(cause);
}
public BssException(String message)... |
package DataStructures.codility;
public class Test {
public int solution(int[] A) {
int minAverage = Integer.MAX_VALUE;
int index = 0;
int avg = 0;
for (int i = 0; i < A.length - 1; i++) {
avg = (A[i] + A[i + 1]) / 2 ;
if (avg < minAverage) {
... |
package com.davivienda.sara.entitys.transaccion;
import com.davivienda.sara.entitys.*;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries... |
package tn.esprit.spring;
import java.util.EnumSet;
import javax.faces.webapp.FacesServlet;
import javax.servlet.DispatcherType;
import org.apache.log4j.Logger;
import org.ocpsoft.rewrite.servlet.RewriteFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAut... |
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import javax.swing.JComponent;
import javax.swing.JFrame;
public class Ship {
public static void main(String[] args) {
mainGUI();
}
public static void mainGUI() {
JFrame frame = new JFra... |
package com.dadashova.aytaj.callsignature.containers;
public class NotifViewHolder {
}
|
/**
* Multipart support.
*/
@NonNullApi
@NonNullFields
package org.springframework.http.codec.multipart;
import org.springframework.lang.NonNullApi;
import org.springframework.lang.NonNullFields;
|
package com.alex.patterns.adapter.example;
public class AdapterVideoToMusic implements Sender {
private VideoSender adapte;
public AdapterVideoToMusic(VideoSender sender) {
this.adapte = sender;
}
@Override
public void send() {
adapte.sendVideo();
}
}
|
package analytics.database;
import static analytics.database.DBCredentials.*;
import java.sql.Connection;
import java.sql.Date;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import ... |
package Implements;
import java.util.List;
import Entity.Size;
public interface SizeImp {
List<Size> lstSize();
Size showSize(int idSize);
String themSize(Size size);
String updateSize(int idSize, String tenSize);
}
|
package hw5.ch7.q1;
import java.io.*;
import java.util.ArrayList;
public class PairTest {
public static void main(String[] args) throws Exception {
ArrayList<Pair> pairs = deserializePairs();
showPairData(pairs);
serializePairs(pairs);
}
/**
* Reads a file of serialized Pairs... |
package extensionExamples;
import IK.AbstractBone;
import IK.AbstractIKPin;
import sceneGraph.AbstractAxes;
public class IKPinExample extends AbstractIKPin{
public IKPinExample(AxesExample inAxes, boolean enabled, BoneExample bone) {
super(inAxes, enabled, bone);
}
public IKPinExample(AxesExample inAxes, Bon... |
package controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
... |
package br.com.mixfiscal.prodspedxnfe.domain.nfe;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Objects;
public class ICMS30 extends ICMS implements Serializable {
private static final long serialVersionUID = -6382517831939574808L;
private int modalidadeBaseCalculoST;//<modBc... |
package com.webserver.shoppingmall.post.model;
import com.webserver.shoppingmall.member.model.Member;
import com.webserver.shoppingmall.shared.BaseTimeEntity;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@... |
package com.zantong.mobilecttx.base.bean;
/**
* 分组项
* @author zyb
*
*
* * * * *
* * * *
* * *
* * *
* * *
* *
*
*
* create at 17/5/4 下午4:54
*/
public class SuperBean {
String name;
boolean hasArrow;
... |
package cus1156_groupproject;
import java.awt.Window.Type;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JTextField;
public class ExamController {
private ExamView theView;
private ExamModel theModel;
public ExamController (ExamView theView, ExamModel theModel) {
... |
package com.example.marios.mathlearn;
/**
* Created by Marios on 5/10/2016.
*/
public class Assignment {
public String assignTitle="";
public String assignLink="";
public boolean assignSelected=false;
public int assignID;
public int assignSequence;
public Assignment(String t, String l, bool... |
package com.springapp.mvc.core.cookie;
import javax.inject.Inject;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;
/**
* Created by max.lu on 2016/1/6.
*/
public class CookieContext {
@Inject
private HttpServletResponse httpSe... |
/*
* 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 database;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLExcepti... |
package br.assembleia.service.impl;
import br.assembleia.dao.PatrimonioDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import br.assembleia.entidades.Patrimonio;
import br.assembleia.ser... |
package gui;
import java.awt.Choice;
import java.awt.Dimension;
import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import blood.model.BloodAdvisor;
public class BloodForm extends JFrame{
Choice ch;
JButton bt;
BloodAdvisor adviser = new BloodAdvi... |
package com.company;
import java.util.Scanner;
public class Ejercicio2_4 {
public static void main(String[] args) {
Scanner teclado = new Scanner(System.in);
System.out.print("Introduzca el numero de millas: ");
int millas = teclado.nextInt();
System.out.print("El numero de mill... |
package it.unive.java.util.exceptions;
@SuppressWarnings("serial")
public class NotFoundException extends Exception{
public NotFoundException (String msg) {
super(msg);
}
}
|
/*
* ### Copyright (C) 2005-2007 Michael Fuchs ###
* ### All Rights Reserved . ###
*
* Author: Michael Fuchs
* E-Mail: michael.fuchs@unico-group.com
* URL: http://www.michael-a-fuchs.de
*/
package org.dbdoclet.tidbit.medium;
import java.io.File;
import java.io.IOException;
import java.text.M... |
package com.cg.service;
import com.cg.entity.Guest;
public interface GuestService {
public long registerGuest(Guest guest);
public long validateGuest(String email, String password);
}
|
package com.agilesoftware.bookgonara.bookgo.Activity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.agilesoftware.bookgonara.bookgo.R;
import com.agilesoftware.bookgonara.bookgo.databinding.ActivitySearchBinding;
public class SearchActivity extends AppCompatActivity {
pri... |
import java.util.Arrays;
import java.util.Random;
public class WorldSystem_v3 {
public int initialStatesNum, currentStatesNum, PC;
public double capAvg, capMed, capSS, capStdDev, capLeading_1, capLeading_2, myCap, oppCap, mySideCap;
public double sideA_cap, sideB_cap;
public double[] capabilities;
public bool... |
package collection;
import java.util.LinkedList;
public class LinkedListDemo {
private static final String[] EX_CLASS = {
"Dung",
"Thu A",
"Thu B",
"H. Thu",
"Truong",
"Hung",
"Tho",
"Anh",
"Hue",
"Huyen",
"NVH",
"Vu",
"Ngoc",
"T. Thuy",
"Tam",
"Giang",
"Mai",
"Quyen",
"Son",
... |
package model;
public enum EnumTipoPagamento {
DÉBITO,
CRÉDITO,
Dinheiro;
}
|
package com.example.faisal.dto.errors;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@JsonNaming(PropertyNamingStrategy.LowerCaseStrategy.class)
public final class Api... |
/**
*
*/
package com.vinodborole.portal.email;
import java.io.UnsupportedEncodingException;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.google.co... |
package com.sims.controller;
import java.beans.PropertyEditorSupport;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotatio... |
package by.orion.onlinertasks.presentation.profile.details.adapters;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import by.orion.onlinertasks.R... |
package com.javarush.test.level07.lesson12.home06;
/* Семья
Создай класс Human с полями имя(String), пол(boolean),возраст(int), отец(Human), мать(Human). Создай объекты и заполни их так, чтобы получилось: Два дедушки, две бабушки, отец, мать, трое детей. Вывести объекты на экран.
Примечание:
Если написать свой ме... |
/*
* Lesson 3 Coding Activity Question 1
*
* Write the code to ask the user to enter their name and print the following message:
Hi ______, nice to see you.
* Remember, you'll need to use the method println and Scanner class method nextLine.
*/
import java.util.Scanner;
class Lesson_3_Activity_One {
publ... |
package com.blogspot.yourfavoritekaisar.learnfragmentimastudio.ui.fragment;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGro... |
package clientPackage;
interface GameCall {
void gameCommunications(int index, int openCards, boolean toPass);
void sendChatMessage(String message, boolean toPass);
void sendEndOfGame(boolean win, boolean draw, boolean toPass, boolean logOut);
void logOut(boolean toPass);
void showLeaderBoard();
}
|
package TurtleRefactored;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
class TurtleTest {
SketchPad mySketchPad;
Turtle myTurtle;
@BeforeEach
void setUp() throws Exception {
mySketchPad = n... |
package com.yoga.controller;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.anno... |
package com.adwork.microservices.users;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;... |
package model;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
public class ConceptLattice {
List<LatticeNode> lattices;
//无参构造,格里面有一个空结点
public ConceptLattice(){
lattices = new LinkedList<>();
}
public List<LatticeNode> getLattices() {
... |
package src.entity;
public class Placeholder extends Crop {
public Placeholder() {
stage = -1;
waterLevel = 1;
url = "@../../images/emptyBKG.png";
}
}
|
package com.nanyin.config.enums;
public enum ResultCodeEnum {
/**
* illegal token : code : 50008
*/
ILLEGAL_TOKEN(50008,"illegal token"),
/**
* TOKEN_EXPIRED : code : 50014
*/
TOKEN_EXPIRED(50014,"token expired"),
/**
* SUCCESS : code : 20000
*/
SUCCESS(20000,"suc... |
package com.freddygenicho.sample.mpesa;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.view.Menu;
import android.view.MenuItem;
import a... |
package com.bsty.base;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
@MapperScan("com.bsty.base.dao")
public class BaseserverApplication {
public static void main(Stri... |
package com.github.banner;
import android.util.SparseArray;
/***
* created by android on 2019/4/11
*/
public class BannerItemManager<T> {
private SparseArray<BannerItem> helperSparseArray=new SparseArray<>();
public void addBannerItem(BannerItem helper){
helperSparseArray.put(helperSparseArray.s... |
package cn.test.demo05;
public class CFXtest {
public static void main(String[] args) {
CFX cfx = new CFX(2,75);
System.out.println(cfx.getArea());
}
}
|
class Solution {
public int canCompleteCircuit(int[] gas, int[] cost) {
if(gas.length == 0){
return 0;
}
if(gas.length == 1){
return gas[0] >= cost[0] ? 0 : -1;
}
int size = gas.length;
for(int i = 0; i < size; i++){
... |
package mb.tianxundai.com.toptoken.bean;
import java.util.List;
/**
* @author txd_dbb
* @emil 15810277571@163.com
* create at 2018/10/1817:05
* description:
*/
public class QuanQiuBean {
/**
* code : 101
* message : 获取成功
* data : {"applyStatus":603,"recordList":[{"waid":1,"userWalletId":null,... |
package de.lezleoh.mathgame.game;
import java.util.Set;
import de.lezleoh.mathgame.term.TermInt;
public class TermWithHitPositions {
TermInt term;
Set<Integer> hitPositions;
public TermWithHitPositions(TermInt term, Set<Integer> hitPositions) {
super();
this.term = term;
this.hitPositions = h... |
package misc.StringBuffer;
public class StringBufferExample {
public static void main(String[] args) {
/**
* String object is immutable and StringBuffer/StringBuilder objects are
* mutable.
*/
StringBuffer sb = new StringBuffer();
System.out.println(sb.capacity()... |
package CartelRecordView;
import BookView.BookFindingView;
import BookView.BuyBookView;
import CartelView.CartelRegistrationView;
import ClientView.ClientFindingView;
import EmployeesView.FindEmployeeView;
import LibraryManagementFunctionFactory.*;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
imp... |
/*
* Copyright 2002-2023 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package entities;
import graphics.Sprite;
public class Portal extends Item {
public Portal(double x, double y, Sprite sprite, String ability) {
super(x, y, sprite, ability);
}
@Override
public void update() {
}
}
|
package com.nsi.clonebin.service;
import com.nsi.clonebin.model.dto.CreateOrEditPasteDTO;
import com.nsi.clonebin.model.dto.MyClonebinPasteDTO;
import com.nsi.clonebin.model.entity.Folder;
import com.nsi.clonebin.model.entity.Paste;
import com.nsi.clonebin.model.entity.UserAccount;
import com.nsi.clonebin.repository.P... |
package com.esum.ebms.v2.msh;
import com.esum.ebms.v2.ProcessorException;
/**
* MSH Process를 처리할 때 발생하는 Exception을 다루는 클래스
*
* Copyright(c) eSum Technologies, Inc. All rights reserved.
*/
public class MSHException extends ProcessorException {
/** HttpMessageSender 인스턴스를 생성하는 중에 발생하는 에러 */
public static final S... |
/*
Copyright (c) 2016 Eron Gjoni
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 to use, copy, modify, merge, publish, distrib... |
package plin.net.br.plin.util;
import android.app.Notification;
import android.app.NotificationManager;
import android.content.Context;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.os.Build;
import android.support.v7.app.NotificationCompat;
import plin.net.br.plin.R;
/**
* Cr... |
package com.kmdc.mdu.utils;
import android.content.Context;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
public class FileUtils {
public static File saveFile(Context context, String content) {
return saveFile(context, content... |
package com.aidigame.hisun.imengstar.widget.fragment;
import java.util.ArrayList;
import net.simonvt.numberpicker.NumberPicker;
import net.simonvt.numberpicker.NumberPicker.OnValueChangeListener;
import com.aidigame.hisun.imengstar.constant.AddressData;
import com.aidigame.hisun.imengstar.R;
import android.content.... |
package TST_teamproject.main.service;
import java.util.List;
import TST_teamproject.main.model.MainVo;
public interface MainService {
public List<MainVo> test();
}
|
package nyc.c4q.android.ui;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.squareup.picasso.Picasso;
import java.text.DateFormat;
import java.text.SimpleDateFormat... |
package Utilities;
import GameControls.GameInfo;
public class EnemyUtilities extends NuetralUtilities{
}
|
package cogbog.dao;
import cogbog.dao.impl.GenericDaoImpl;
import cogbog.model.Bonus;
import cogbog.model.Profile;
import cogbog.model.Skill;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public cl... |
package textanalysis.dbutils;
import java.io.File;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.M... |
//file: Problem_2_1.java
//author: Victoria Cameron
//course: CMPT 220
//assignment: Lab 1
//due date: January 26, 2017
//version: 1.0
import java.util.Scanner;
public class Problem_2_1{
public static void main(String[] args){
//display welcome
System.out.println ("Welcome to the Celsius to Fahrenheit conver... |
/*
* Copyright © 2020-2022 ForgeRock AS (obst@forgerock.com)
*
* 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... |
package cn.jaychang.scstudy.account.dto;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* @author zhangjie
* @package cn.jaychang.scstudy.account.dto
* @description 账户DTO
* @create 2018-10... |
package com.geetuargo;
import java.util.*;
public class StreamAPI {
public static void main(String[] args) {
List<Integer> values = new ArrayList();
for(int i=1; i<=10; i++ )
{
values.add(i);
}
values.forEach(a -> System.out.println(a));
}
}
|
package enshud.s4.ilgenerator.visitors;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Pattern;
import enshud.interlanguage.iloperand.ILIndexedVariableOperand;
import enshud.interlanguage.iloperand.ILSimpleVariableOperand;
import enshud.interlanguage.ilstatement.ILCopyStatement;
import enshud.... |
package br.com.zup.ecommerce.categoria;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Positive;
import org.springframework.util.Assert;
import br.com.zup.ecommerce.compartilhado.ExistsId;
import br.com.zup.ecommerce.compartilhado.UniqueValue;
public class CategoriaRequest {
@N... |
package com.esum.framework.core.management.mbean.as2;
import java.util.List;
import com.esum.framework.core.component.ComponentStatus;
import com.esum.framework.core.exception.SystemException;
import com.esum.framework.core.management.mbean.TransactionStatus;
/**
* AS2 Control.
*/
public interface AS2ControlMBean ... |
package com.zeyad.grability.utilities;
/**
* Created by ZIaDo on 12/4/15.
*/
public class Config {
public static String URL = "https://itunes.apple.com/us/rss/topfreeapplications/limit=20", FILENAME;
public String getURL() {
return URL;
}
public void setURL(String url) {
URL = url;
... |
package com.sims.model;
import java.io.Serializable;
import java.sql.Timestamp;
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.p... |
/*
* Copyright 2002-2019 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.multivision.ehrms.action;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.a... |
/*
Riley Denoon
SuperString
April 17th 2020
*/
package SuperString;
/**
*
* @author melanie
*/
public class SuperStringFrame extends javax.swing.JPanel {
/**
* Creates new form SuperStringFrame
*/
public SuperStringFrame() {
initComponents();
}
/**
* This method is... |
package net.nowtryz.mcutils.command.execution;
import net.nowtryz.mcutils.command.contexts.CompletionContext;
import java.util.List;
public interface Completer extends Execution {
List<String> complete(CompletionContext context);
}
|
package com.pda.pda_android.activity.apps.detail;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.gson.Gson;
import com.pda.pda_android.R;
import com.pda.pda_android.adapter.ssxx.SsxxDetailAdapter;
import com.pda.pda_android.base.BaseActivity;
import com.pd... |
package me.walkerknapp.cfi.structs;
import com.dslplatform.json.CompiledJson;
import com.dslplatform.json.JsonAttribute;
import java.util.List;
@CompiledJson
public class CMakeFiles implements CFIObject {
@JsonAttribute(mandatory = true)
public Paths paths;
@JsonAttribute(mandatory = true)
public Li... |
package org.squonk.execution.steps.impl;
import org.squonk.types.BasicObject;
import org.squonk.types.TypesUtils;
import org.squonk.execution.steps.AbstractStep;
import org.squonk.execution.steps.StepDefinitionConstants;
import org.squonk.execution.variable.VariableManager;
import org.squonk.types.MoleculeObject;
impo... |
package com.cs.game;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.querydsl.QueryDslPredicateExecutor;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @author Omid Alaepour
*/
@Repos... |
package com.cinema.common.service;
import java.util.List;
import com.cinema.sys.model.TreeNode;
public interface TreeService {
/**模拟器系统树*/
List<TreeNode> getSimulatorTree(String simulatorId);
/**产品类别树*/
List<TreeNode> getTypeTree(String typeId);
}
|
/*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* 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
*
* ... |
package com.company;
public class Main {
public static void main(String[] args) {
//Startup operations
boolean directoryCheck = FileHandling.createDirectory();
boolean bootHistoryCheck = FileHandling.createSIHistory();
Menu.mainMenu();
}
}
|
package DSA.udemy.stack;
import DSA.udemy.arrays.MyArray;
public class MyStackArray<E> implements MyStack<E> {
private E top;
private E bottom;
private final MyArray<E> array;
public MyStackArray() {
this.array = new MyArray<>();
}
@Override
public E push(E element) {
if... |
package com.cmeTask.InternTask.api;
import com.cmeTask.InternTask.model.RestVisit;
import com.cmeTask.InternTask.model.Visit;
import com.cmeTask.InternTask.service.VisitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.lang.NonNull;
import org.springframework.web.bind.a... |
package ru.job4j.ui;
/**
* Класс MenuOutException реализует сущность Исключение "Выход за пределы меню".
*
* @author Goureyev Ilya (mailto:ill-jah@yandex.ru)
* @version 2017-04-24
* @since 2017-04-24
*/
public class MenuOutException extends RuntimeException {
/**
* Конструктор.
* @param msg сообщен... |
package com.gxtc.huchuan.ui.mine.incomedetail.profit.circle;
import android.content.Intent;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
im... |
package com.example.demo.dominio;
public @interface NoArgsConstrutctor {
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.