lang
stringclasses 10
values | seed
stringlengths 5
2.12k
|
---|---|
java | }
/**
* @param contRegistroC120 the contRegistroC120 to set
*/
public void setContRegistroC120(int contRegistroC120) {
this.contRegistroC120 = contRegistroC120;
}
/**
* @return the contRegistroC130
*/
public int getContRegistroC130() { |
java | final Consumer<InternalAppender> writer = appender -> {
try (DocumentContext wd = appender.writingDocument()) {
wd.wire().write("key").writeDouble(1);
}
};
checkTheEOFisWrittenToPreQueueFileInner(writer, (tp, rollCycle) -> tp.advanceMillis(2 * rollCycle.lengthInMillis()), writer);
}
private void checkTheEOFisWrittenToPreQueueFileInner(Consumer<InternalAppender> writer1,
BiConsumer<SetTimeProvider, RollCycle> tpConsumer, |
java | }
}
average /= poundsEaten.length; |
java | */
private static InsertBlocksResult InsertBlocks(String source) {
boolean changed = false;
String[] blocks = {"if", "for", "while", "else", "do"};
String[] lines = source.split("\n");
StringBuffer bf = new StringBuffer();
Stack<Integer> bracesScope = new Stack<>();
|
java | }
@Override public void visit(ProcedureRef e) {
super.visit(e);
// check reference procedure
{
Element elem = e.getProcedure(); |
java | @Path("/search")
@ApiOperation(httpMethod = "GET", notes = "No more than 1000 objects are allowed to be returned at a time.",
value = "Retrieves all regulatory elements", response = RegulatoryFeature.class,
responseContainer = "QueryResponse")
@ApiImplicitParams({ |
java | * <element name="status" type="{http://www.e-mis.com/emisopen}voc.ProblemStatus" minOccurs="0"/>
* <element name="significance" type="{http://www.e-mis.com/emisopen}voc.ProblemSignificance" minOccurs="0"/>
* <element name="expectedDuration" type="{http://www.e-mis.com/emisopen}dt.Duration" minOccurs="0"/>
* <element name="endTime" type="{http://www.e-mis.com/emisopen}dt.DatePart" minOccurs="0"/>
* <element name="owner" type="{http://www.e-mis.com/emisopen}voc.ProblemOwner" minOccurs="0"/>
* <element name="parentProblem" type="{http://www.e-mis.com/emisopen}OpenHR001.ProblemHierarchy" maxOccurs="unbounded" minOccurs="0"/>
* <element name="childProblem" type="{http://www.e-mis.com/emisopen}OpenHR001.ProblemHierarchy" maxOccurs="unbounded" minOccurs="0"/>
* <element name="eventLink" type="{http://www.e-mis.com/emisopen}OpenHR001.ProblemEventLink" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
* |
java |
public class ArtifactWithFailure extends Artifact {
@OPERATION void testFail(){
log("executing testFail..");
failed("Failure msg", "reason", "test",303);
}
|
java | } else if(userInput.equals("2")){
PersonQueue pq = (PersonQueue) queue;
pq.smallest();
// INVALID
} else{
System.out.println(INVALID_INPUT);
}
}
// ############################################################################ |
java | hx200203Model.setPayMethod(0);
result = gson.toJson(hx200203Model,Hx200203Model.class);
break;
case 204:
break;
default:
break;
|
java |
import java.util.List;
/**
* 用户 扩展
*
* @author wagk |
java |
/**
* 状态码 信息
*
* @param code 状态码
* @param message 信息
*/
public Result(int code, String message) {
super();
this.code = code;
this.message = message;
}
public boolean success() { |
java |
// Step 4: Sort in ascending order all the digits
// to the right side of the swapped 'len-1'
reverse(arr, min + 1, len - 1);
// print the result
System.out.print("The next greater number is: ");
for (int i : arr) {
System.out.print(i);
}
}
} |
java | boolean hasOne = false;
for ( int ind = 0; ind < uses.length; ind++ )
{
if ( uses[ ind ] > 0 && ! hasOne )
{
maxInd = ind;
hasOne = true;
}
else if ( uses[ ind ] > 0 )
{ |
java | package br.com.application.name.steps;
import br.com.application.name.commons.BaseTest;
import br.com.application.name.actions.HomeActions;
import cucumber.api.java.pt.Dado;
public class InitTestStep extends BaseTest {
private HomeActions homeFuncionalidade;
public InitTestStep() {
this.homeFuncionalidade = new HomeActions();
}
@Dado("^que acesso a pagina inicial do sistema$") |
java | * @Warning: 死锁
* @Author: <NAME>
* @Package: thread-01 - ThreadService
* @Date: Nov 26, 2020 10:57:49 PM
* @Version: 1.0.0
* @TimeComplexity: Required[O(1)]
* @ExecuteResult: 死锁
* @Status: Accepted
*/
public class ThreadService3 {
public void method1() {
System.out.println("Method 1 准备获取读锁");
lock.readLock().lock(); |
java | * 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 in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License. |
java | num = num/10;
lst.add(rem);
}
lst.add(num);
int newInt = squaredNumber(lst);
if(newInt == 1){
return true;
} else {
return isHappy(newInt, seen);
}
} |
java | }
if (inputUpdate.getInputParallelismUpdate() != null) {
jsonGenerator.writeFieldName("InputParallelismUpdate");
InputParallelismUpdateJsonMarshaller.getInstance().marshall(
inputUpdate.getInputParallelismUpdate(), jsonGenerator);
}
jsonGenerator.writeEndObject();
} catch (Throwable t) {
throw new AmazonClientException(
"Unable to marshall request to JSON: " + t.getMessage(), t);
} |
java |
import static io.smallrye.config.source.zookeeper.ZooKeeperConfigSource.APPLICATION_ID_KEY;
import static io.smallrye.config.source.zookeeper.ZooKeeperConfigSource.ZOOKEEPER_URL_KEY;
import java.util.Collections;
import java.util.OptionalInt;
import org.eclipse.microprofile.config.spi.ConfigSource;
import io.smallrye.config.ConfigSourceContext;
import io.smallrye.config.ConfigSourceFactory;
public class ZooKeeperConfigSourceFactory implements ConfigSourceFactory {
@Override
public Iterable<ConfigSource> getConfigSources(final ConfigSourceContext context) { |
java | import io.github.talelin.latticy.mapper.ThemeSpuMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author generator@TaleLin
* @since 2021-09-05
*/
@Service
public class ThemeSpuService extends ServiceImpl<ThemeSpuMapper, ThemeSpuDO> implements IService<ThemeSpuDO> {
|
java |
for (char i = 97; k > 0; i++) {
while (s.indexOf(i) != -1 && k>0) {
s=s.substring(0,s.indexOf(i))+s.substring(s.indexOf(i)+1);
if (s.equals("")) return "";
k--;
}
if (i == 122)
i = 97;
}
return s;
}
} |
java | public class SetShape extends DisplayCommand{
public SetShape (double[] parameters, DisplayCommandInterface model) {
super(parameters, model);
}
@Override
public double execute () throws Exception {
this.getModel().setShape(this.getParams()[0]);
return this.getParams()[0];
}
} |
java |
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
/**
* Spring Data JPA repository for the Task entity.
*/
@SuppressWarnings("unused")
@Repository
public interface TaskRepository extends JpaRepository<Task, Long>, JpaSpecificationExecutor<Task> {
List<Task> findByEndDateGreaterThanEqualAndStateKeyNotOrStateKeyNull(Instant endDate, String stateKey); |
java | @JacksonAnnotation
public @interface JsonProperty
{
/**
* Defines name of the logical property, i.e. Json object field
* name to use for the property: if empty String (which is the
* default), will use name of the field that is annotated.
*/
String value() default "";
}
|
java | void cleanForm();
void goToUiEstadoAmistad();
boolean isValidData();
void updateDataGrid(EstadoAmistad bean);
void clearError();
boolean isExistInGrid(); |
java | .contains("#1")
.contains("#2")
.contains("#3")
.contains("#4")
.contains("#5");
assertThatJson(model).node("series").isArray().hasSize(3); |
java | @Override
public void encode() {
this.writeByte(getPacketId());
this.writeBlockCoords(x, y, z);
this.writeUnsignedVarInt(blockId);
this.writeUnsignedVarInt((0xb << 4) | blockData & 0xf); |
java | import java.io.Serializable;
import com.atg.openssp.common.core.entry.SessionAgent;
import com.atg.openssp.common.exception.BidProcessingException;
/**
* @author <NAME>
* |
java | public void setPathAttributeSpecified(final boolean value) {
this.hasPathAttribute = value;
}
public boolean isPathAttributeSpecified() {
return this.hasPathAttribute;
}
public void setDomainAttributeSpecified(final boolean value) {
this.hasDomainAttribute = value;
}
public boolean isDomainAttributeSpecified() {
return this.hasDomainAttribute; |
java | this.contentLockStateUserId = contentLockStateUserId;
}
public String getContentLockStateUserName() {
return contentLockStateUserName;
}
public void setContentLockStateUserName(String contentLockStateUserName) { |
java | * Classe abstrata das coordenadas. Implementa a interface
*/
public abstract class AbstractCoordinate implements Coordinate{
}
|
java | }
}
public void setColumn(int col, float val) {
for(int j=0; j < nrows; j++) {
this.setValue(j, col, val);
}
}
/**
* Sets every value less than a cutoff value to zero.
* @param cutOff
*/ |
java | return error(message).put(DATA, data);
}
/**
* 自定义错误响应数据,默认状态码为500
*
* @param message 错误信息 |
java |
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
public class QueryTester {
public static void main(String[] args) throws Exception{
EntityManagerFactory emf = Persistence.createEntityManagerFactory("jpaQuery");
EntityManager em = emf.createEntityManager();
|
java | this.motionZ *= 0.8500000238418579D;
if (this.particleMaxAge-- <= 0) {
this.setDead();
}
} |
java | public Configuration cfg;
public CommandHandler cmd;
public EntitiesManager entitiesManager;
public TradingController tradingController;
|
java | import java.util.stream.DoubleStream;
import java.util.stream.IntStream;
import java.util.stream.LongStream;
import java.util.stream.Stream;
/**
* Создание потока данных с использованием статического метода Stream.of.
*
* @author ifedorenko
* @since 31.10.2018
*/
public class StreamOf { |
java | name|elfVer
init|=
name|stream
operator|.
name|read
argument_list|()
decl_stmt|;
comment|// Byte 8 is the OS, if set (lots of compilers don't)
comment|// Byte 9 is the OS (specific) ABI version
name|int |
java | }
protected abstract void beginTransaction();
@Override
public void tearDown() throws Exception {
rollbackTransaction();
destroyFields();
destroyInjector();
}
|
java | private Long size;
/**
* index_count number 索引数量
*/
@SerializedName("index_count")
private Long indexCount;
/**
* index_size number 索引占用大小,单位:字节
*/
@SerializedName("index_size")
private Long indexSize; |
java | taskRepository.deleteAll();
}
@Test
public void retrieveTasks() throws Exception {
mvc.perform(get("/api/tasks")).andExpect(status().isOk());
}
@Test
public void retrieveSingleTask() throws Exception {
mvc.perform(
get("/api/tasks/{id}", 1L)
.accept(MediaType.APPLICATION_JSON)) |
java | * <small> 2019-01-09 10:12:39 | canxue</small>
*/
@Data
@SuppressWarnings("serial")
@TableName("db_home_price")
@EqualsAndHashCode(callSuper = true)
public class HomePriceDO extends Model<HomePriceDO> {
@TableId
@Excel(name = "id")
private Long id; |
java | HashMap listOfCodingSchemeVersionsUsedInResolutionHashMap = new HashMap();
try {
CodingSchemeRenderingList csrl = null;
try {
csrl = this.lbSvc.getSupportedCodingSchemes(); |
java | import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.Data;
|
java |
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import org.springframework.web.socket.config.annotation.WebSocketConfigurer;
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry;
|
java | @Override
public Set<Pet> findAll() {
Set<Pet> pets = new HashSet<>();
this.petRepository.findAll().forEach(pets::add);
return pets; |
java |
@Override
public boolean hasNext() {
return it.hasNext();
}
@Override
public SyncProperty next() {
JsonValue val = it.next();
String clazz = val.getString("class");
SyncProperty result = null; |
java | /*
* Copyright (c) 2014-2015 dCentralizedSystems, LLC. 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
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, without warranties or
* conditions of any kind, EITHER EXPRESS OR IMPLIED. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.dcentralized.core.services.common;
|
java | package com.fivan.kalah.repository;
import com.fivan.kalah.entity.PlayerState;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface PlayerStateRepository extends CrudRepository<PlayerState, Integer> {
}
|
java | private static Pattern portPattern = Pattern.compile("(?i)(port=)(.*?)([^)]+)");
private static Pattern serviceNamePattern = Pattern.compile("(?i)(SERVICE_NAME=)(.*?)([^)]+)");
public synchronized HikariDataSource createHikariDS(
String url, String username, String password, String tenant)
throws SQLException {
HikariDataSource ds = new HikariDataSource(); |
java |
/**
* Returns time of the previous frame in seconds.
*/
public static float getDeltaTime() {
return deltaTime * 0.000000001f;
}
public static void setDeltaTime(long deltaTime) { |
java | // public TestConstructorBean(String str,Integer integer){}
// public TestConstructorBean(Integer integer){}
// @ConstructorProperties("xx")
// public TestConstructorBean(TestConstructParam testConstructParam){}
// public TestConstructorBean(Class clazz){this.clazz = clazz;}
/****************循环依赖测试*********************/
@Autowired
private TestConstructParam testConstructParam;
|
java | import java.util.Map;
import org.junit.Before;
import org.junit.Test;
import fr.univrouen.umlreverse.model.diagram.util.IStyle;
import fr.univrouen.umlreverse.model.diagram.util.Style;
|
java | package com.github.fridujo.sample.jdbc.customer;
import org.springframework.data.repository.CrudRepository;
import java.util.Optional;
public interface CustomerRepository extends CrudRepository<Customer, Long> {
Optional<Customer> findByLastname(String lastname);
}
|
java | import static org.junit.Assert.assertNotSame;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
/** |
java | public void testInitialize() {
LockFactory lf1 = new LockFactory("127.0.0.1", "casslock_test");
assertNotNull(lf1);
LockFactory lf2 = new LockFactory("localhost, 127.0.0.1", "casslock_test");
assertNotNull(lf2);
}
@Test(expected=DriverException.class)
public void testInitializeFailure() {
LockFactory lf1 = new LockFactory("127.0.0.1", "casslock_test__");
assertNull(lf1); // should not happen
}
}
|
java | }
private Text getNoWinnersText() {
return new TranslatableText("text.volleyball.no_winners").formatted(Formatting.GOLD);
}
public boolean checkForWinner() {
for (TeamEntry team : this.phase.getTeams()) {
if (team.hasRequiredScore()) {
this.phase.getGameSpace().getPlayers().sendMessage(team.getWinText());
return true;
} |
java |
import utilities.Command;
import java.util.List;
public interface ListModel {
List<Command> getCommandList(); |
java |
import com.alibaba.fastjson.annotation.JSONField;
/**
* @author zxc
* @date 2020/02/05
*/
public class ScheduleOutput { |
java |
import com.leroymerlin.pandroid.event.opener.FragmentOpener;
public class BasePandroidFragmentOpener extends FragmentOpener {
public BasePandroidFragmentOpener() {
super(BasePandroidFragment.class);
}
}
|
java | // Required empty public constructor
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getArguments() != null) {
mCount = getArguments().getInt(ARG_COUNT);
}
initItems(); |
java | import org.wso2.carbon.registry.core.service.RegistryService;
import org.wso2.carbon.user.core.service.RealmService;
import java.util.Collections;
|
java | import maskbook.maskshop.domain.Reply;
import maskbook.maskshop.repository.BoardRepository;
import maskbook.maskshop.repository.ReplyRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List; |
java | package hanoi;
public class Piece {
public int color;//1,w;0,b
public int size;
public Piece(int color,int size) {
this.color=color;
this.size=size;
}
}
|
java | public RemittanceLocationMethod2Code getMtd() {
return mtd;
}
/**
* Sets the value of the mtd property.
*
* @param value
* allowed object is
* {@link RemittanceLocationMethod2Code } |
java | import javax.swing.text.html.*;
import javax.swing.text.*;
import fonts.Font;
import documents.NRC_HTMLDocument;
import script.Roman;
import script.TransCoder;
import java.util.*;
import java.util.regex.Matcher;
|
java | }
public NodeFactory(int lastID)
{
super(lastID);
}
public NodeFactory(int lastID, int incAmount)
{
super(lastID, incAmount);
}
/**
* @return A created Node with incremented ID |
java | //the run in a private class. The rest of the methods are protected
//so they are ok.
private class PollingThread extends Thread {
@Override
public void run() {
try {
running = true;
runLoop();
if(log.isTraceEnabled())
log.trace("shutting down the PollingThread");
selector.close();
selector = null; |
java | package me.leergo.leetcode.question.easy._344;
/**
* Created by Xoder on 2017/7/6.
*/
public class ReverseString {
public static void main(String[] args) {
System.out.println(new Solution().reverseString("hello"));
}
}
|
java | this.iterators.addAll(iterators);
}
/**
* Sets the sub-iterators.
*
* @param iterators the sub-iterators to be set.
*/
public void setIterators(final List<Iterator<T>> iterators) {
this.iterators.clear(); |
java | @Override
public void register(IGloballyAddressable obj) {
mRegistryMap.put(this.getKeyFor(obj), obj);
uuidRegistryMap.put(obj.getUUID(), obj);
}
@Override
public void register(IGloballyAddressable obj, String namespace, String name) {
mRegistryMap.put(this.getKeyFor(obj, namespace, name), obj);
uuidRegistryMap.put(obj.getUUID(), obj);
} |
java | package de.transaction.statistics.controllers.exceptions;
public class OldTransactionException extends RuntimeException {
public OldTransactionException() { |
java | public int describeContents() {
return 0;
}
public boolean equals(@Nullable Object obj) {
if (this != obj) {
if (obj instanceof Parameters) {
if (this.invoiceID == ((Parameters) obj).invoiceID) {
return true;
}
}
return false;
}
|
java | * Verifiable mobile number attribute value syntax.
* @author <NAME>
*/
public class VerifiableMobileNumberAttributeSyntax implements AttributeValueSyntax<VerifiableMobileNumber>
{
public static final String ID = "verifiableMobileNumber";
private MobileNumberConfirmationConfiguration mobileNumberConfirmationConfiguration;
@Override
public String getValueSyntaxId()
{
return ID;
} |
java |
@Service
@Transactional(readOnly = true)
public class HvLogisticsCarDtlService extends CrudService<HvLogisticsCarDtlDao, HvLogisticsCarDtl>{
@Autowired
private HvLogisticsCarDtlDao hvLogisticsCarDtlDao;
@Transactional(readOnly = false)
public Page<HvLogisticsCarDtl> findPage(Page<HvLogisticsCarDtl> page, HvLogisticsCarDtl hvLogisticsCarDtl, boolean isDataScopeFilter) {
hvLogisticsCarDtl.getSqlMap().put("dsf", dataScopeFilter(hvLogisticsCarDtl.getCurrentUser(), "o", "u"));
return super.findPage(page, hvLogisticsCarDtl);
|
java | package cn.isjinhao.se.sql.grammar.statement.create;
import cn.isjinhao.se.sql.grammar.AstMetaInfo;
import cn.isjinhao.se.sql.grammar.CurdStatement;
/**
* @Author ISJINHAO
* @Date 2021/4/3 17:55
*/
public class SingleInsertMetaInfo extends AstMetaInfo {
public SingleInsertMetaInfo(CurdStatement curdStatement) {
super(curdStatement);
} |
java | private Produit produitDtoToProduit(ProduitDTO prd){
return Produit.builder()
.id(prd.getId())
.image(prd.getImage())
.nom(prd.getNom())
.prix(prd.getPrix())
.description(prd.getDescription()).build();
}
|
java |
{
if (HotFix.PREVENT_VERIFY) {
System.out.println(VerifyLoad.class);
}
this.this$0 = this$0;
}
|
java | while (loop-- > 0) {
st = new StringTokenizer(br.readLine());
int node1 = Integer.parseInt(st.nextToken()) - 1;
int node2 = Integer.parseInt(st.nextToken()) - 1;
graph[node1].add(node2);
graph[node2].add(node1); |
java | import com.jcertif.abj2014.intro.spring.data.AbstractTest;
import com.jcertif.abj2014.intro.spring.data.model.Sessions;
import com.jcertif.abj2014.intro.spring.data.model.Speaker;
import java.util.List;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import org.junit.Test;
import static org.junit.Assert.*;
import org.springframework.beans.factory.annotation.Autowired; |
java | float total = members.size();
float radius = initialRadius + (float)Math.sqrt(total) * initialRadius * 0.5f;
float cur = 0;
for(ChildNode node : members ) {
float half = 1.0f / total * (float)Math.PI;
node.speculateCenter(position.data[0] + radius * (float)Math.cos(cur + half),
position.data[1] + radius * (float)Math.sin(cur + half));
cur += half * 2;
}
}
public void speculateLinks() {
float x = position.data[0]; |
java | package booking.repository;
import booking.model.Booking;
import org.springframework.data.repository.CrudRepository;
public interface BookingRepository extends CrudRepository<Booking, Long> {
}
|
java | */
@JsonInclude(Include.NON_NULL)
public class GeneralizeMaskingProviderConfig extends MaskingProviderConfig {
private static final long serialVersionUID = 1395588026091172621L;
String maskRuleSet = null;
public GeneralizeMaskingProviderConfig() {
type = MaskingProviderType.GENERALIZE;
}
|
java | }
/**
* Mandates API.
* @return The mandates API endpoint
*/
public MandateEndpoint mandates() {
return mandates(new SimpleResourceFormatter<>());
}
|
java | import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
public class DisentangleTest {
@Test
public void findIdInMap() {
Map<String, Integer> map = new HashMap<>(2);
map.put("hello", 5);
map.put("cat", 3);
assertThat(Disentangle.findById(map).apply("hello").get())
.isEqualTo(map.get("hello"));
}
} |
java |
@Test
void testSelenoid(RemoteWebDriver driver) {
driver.get("https://bonigarcia.dev/selenium-webdriver-java/");
assertThat(driver.getTitle()).contains("Selenium WebDriver"); |
java | import com.spidlinq.mezu.demo.DemoHandler;
import com.spidlinq.mezu.exception.EventDispatchException;
import com.spidlinq.mezu.exception.EventRegistrationException;
import com.spidlinq.mezu.exception.NoValidHandlerException;
import com.spidlinq.mezu.generic.EbentDispatcher;
/**
* Created by .local on 01/07/2016.
*/
public class Demo {
public static void main(String[] args) {
EbentDispatcher dispatcher = new EbentDispatcher(); |
java | public class Main {
public void foo() {
I i = n -> {n<caret>++; System.out.println(n);}
}
interface I {int get(int n);}
} |
java | import io.appium.java_client.android.GsmCallActions;
import org.jetbrains.annotations.NotNull;
public class GsmCallActionConverter {
|
java | * Method that generate Receipt by specific Invoice
*
* @param idInvioce id of the Invoice
* @return Receipt of the invoice paid
*/
public Receipt generateReceipt(int idInvioce) throws SQLException {
InvoiceDataHandler invoiceDataHandler = new InvoiceDataHandler();
Invoice invoice = invoiceDataHandler.getById(idInvioce);
boolean payInvoice = InvoicePayment.payInvoice(invoice.getidUser(), invoice.getTotalPrice());
|
java | String message;
//private static Object lock = new Object();
public GroupMessageHandler(String ip, String message) {
this.my_ip = ip;
this.message = message;
}
|
java | private Integer maxPage;
public List<Essay> getList() {
return list;
}
public void setList(List<Essay> list) {
this.list = list;
}
public Integer getMaxPage() {
return maxPage;
} |
java | private Blockchain blockchain;
/**
* construct
* @param blockchain |
java |
import java.util.List;
import java.util.Map;
/**
* 政府部门设置
*
* @author chenshun
* @email <EMAIL> |
java | import com.jive.sip.processor.rfc3261.serializing.serializers.AbstractRfcSerializer;
import com.jive.sip.processor.rfc3261.serializing.serializers.RfcSerializationConstants;
import lombok.AllArgsConstructor;
@AllArgsConstructor
public class ViaSerializer extends AbstractRfcSerializer<Via>
{
private final RfcSerializerManager manager;
@Override
public void serialize(final Writer writer, final Via obj) throws IOException
{ |
java |
/**
* @author cd5160866
*/
public class PermissionConfig {
/**
* 是否跳过老的rom的权限检查 ,即老的rom默认直接返回ture 而不是appOpps反射检查后的结果
*/
public static boolean skipOldRom = false;
}
|
java | package org.gridkit.jvmtool.stacktrace;
import java.util.Collection;
public class StackFrameArray extends AbstractStackFrameArray {
final StackFrame[] array;
final int from;
final int to;
public StackFrameArray(Collection<StackFrame> frames) {
this(frames.toArray(new StackFrame[frames.size()])); |
java | * 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
* |
java | // (c) COPYRIGHT MIT and INRIA, 1997.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.css.properties.css1;
/** |
Subsets and Splits