repo_name
stringlengths
7
104
file_path
stringlengths
13
198
context
stringlengths
67
7.15k
import_statement
stringlengths
16
4.43k
code
stringlengths
40
6.98k
prompt
stringlengths
227
8.27k
next_line
stringlengths
8
795
aatarasoff/spring-thrift-starter
autoconfigure/src/main/java/info/developerblog/spring/thrift/annotation/ThriftClientsMap.java
// Path: autoconfigure/src/main/java/info/developerblog/spring/thrift/client/AbstractThriftClientKeyMapper.java // public abstract class AbstractThriftClientKeyMapper { // abstract public Map<String, ThriftClientKey> getMappings(); // }
import info.developerblog.spring.thrift.client.AbstractThriftClientKeyMapper; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target;
package info.developerblog.spring.thrift.annotation; /** * @author jihor (jihor@ya.ru) * Created on 2016-06-14 */ @Target({ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME) @Documented @Inherited public @interface ThriftClientsMap {
// Path: autoconfigure/src/main/java/info/developerblog/spring/thrift/client/AbstractThriftClientKeyMapper.java // public abstract class AbstractThriftClientKeyMapper { // abstract public Map<String, ThriftClientKey> getMappings(); // } // Path: autoconfigure/src/main/java/info/developerblog/spring/thrift/annotat...
Class mapperClass() default AbstractThriftClientKeyMapper.class;
aatarasoff/spring-thrift-starter
examples/simple-client/src/test/java/info/developerblog/examples/thirft/simpleclient/TGreetingServiceHandlerTests.java
// Path: examples/simple-client/src/test/java/info/developerblog/examples/thirft/simpleclient/configuration/CountingAspect.java // @Aspect // public class CountingAspect { // public AtomicInteger counter = new AtomicInteger(0); // // @Pointcut("execution(* org.springframework.cloud.client.loadbalancer.LoadBala...
import info.developerblog.examples.thirft.simpleclient.configuration.CountingAspect; import info.developerblog.examples.thirft.simpleclient.configuration.TestAspectConfiguration; import org.apache.commons.pool2.impl.GenericKeyedObjectPool; import org.apache.thrift.transport.TTransportException; import org.junit.Assert;...
package info.developerblog.examples.thirft.simpleclient; /** * Created by aleksandr on 01.09.15. */ @RunWith(SpringRunner.class) @SpringBootTest(classes = { SimpleClientApplication.class,
// Path: examples/simple-client/src/test/java/info/developerblog/examples/thirft/simpleclient/configuration/CountingAspect.java // @Aspect // public class CountingAspect { // public AtomicInteger counter = new AtomicInteger(0); // // @Pointcut("execution(* org.springframework.cloud.client.loadbalancer.LoadBala...
TestAspectConfiguration.class
aatarasoff/spring-thrift-starter
examples/simple-client/src/test/java/info/developerblog/examples/thirft/simpleclient/TGreetingServiceHandlerTests.java
// Path: examples/simple-client/src/test/java/info/developerblog/examples/thirft/simpleclient/configuration/CountingAspect.java // @Aspect // public class CountingAspect { // public AtomicInteger counter = new AtomicInteger(0); // // @Pointcut("execution(* org.springframework.cloud.client.loadbalancer.LoadBala...
import info.developerblog.examples.thirft.simpleclient.configuration.CountingAspect; import info.developerblog.examples.thirft.simpleclient.configuration.TestAspectConfiguration; import org.apache.commons.pool2.impl.GenericKeyedObjectPool; import org.apache.thrift.transport.TTransportException; import org.junit.Assert;...
package info.developerblog.examples.thirft.simpleclient; /** * Created by aleksandr on 01.09.15. */ @RunWith(SpringRunner.class) @SpringBootTest(classes = { SimpleClientApplication.class, TestAspectConfiguration.class }, webEnvironment = RANDOM_PORT) public class TGreetingServiceHandlerTests { @Aut...
// Path: examples/simple-client/src/test/java/info/developerblog/examples/thirft/simpleclient/configuration/CountingAspect.java // @Aspect // public class CountingAspect { // public AtomicInteger counter = new AtomicInteger(0); // // @Pointcut("execution(* org.springframework.cloud.client.loadbalancer.LoadBala...
CountingAspect countingAspect;
aatarasoff/spring-thrift-starter
examples/simple-client/src/test/java/info/developerblog/examples/thirft/simpleclient/TGreetingServiceHandlerTests.java
// Path: examples/simple-client/src/test/java/info/developerblog/examples/thirft/simpleclient/configuration/CountingAspect.java // @Aspect // public class CountingAspect { // public AtomicInteger counter = new AtomicInteger(0); // // @Pointcut("execution(* org.springframework.cloud.client.loadbalancer.LoadBala...
import info.developerblog.examples.thirft.simpleclient.configuration.CountingAspect; import info.developerblog.examples.thirft.simpleclient.configuration.TestAspectConfiguration; import org.apache.commons.pool2.impl.GenericKeyedObjectPool; import org.apache.thrift.transport.TTransportException; import org.junit.Assert;...
package info.developerblog.examples.thirft.simpleclient; /** * Created by aleksandr on 01.09.15. */ @RunWith(SpringRunner.class) @SpringBootTest(classes = { SimpleClientApplication.class, TestAspectConfiguration.class }, webEnvironment = RANDOM_PORT) public class TGreetingServiceHandlerTests { @Aut...
// Path: examples/simple-client/src/test/java/info/developerblog/examples/thirft/simpleclient/configuration/CountingAspect.java // @Aspect // public class CountingAspect { // public AtomicInteger counter = new AtomicInteger(0); // // @Pointcut("execution(* org.springframework.cloud.client.loadbalancer.LoadBala...
greetingService.getGreetingWithTimeout(TIMEOUTEMULATOR, "John");
aatarasoff/spring-thrift-starter
examples/simple-client/src/main/java/info/developerblog/examples/thirft/simpleclient/SampleMapper.java
// Path: autoconfigure/src/main/java/info/developerblog/spring/thrift/client/AbstractThriftClientKeyMapper.java // public abstract class AbstractThriftClientKeyMapper { // abstract public Map<String, ThriftClientKey> getMappings(); // } // // Path: autoconfigure/src/main/java/info/developerblog/spring/thrift/clien...
import example.TGreetingService; import info.developerblog.spring.thrift.client.AbstractThriftClientKeyMapper; import info.developerblog.spring.thrift.client.pool.ThriftClientKey; import java.util.HashMap; import java.util.Map; import javax.annotation.PostConstruct; import org.springframework.stereotype.Component;
package info.developerblog.examples.thirft.simpleclient; /** * @author jihor (jihor@ya.ru) * Created on 2016-06-14 */ @Component public class SampleMapper extends AbstractThriftClientKeyMapper {
// Path: autoconfigure/src/main/java/info/developerblog/spring/thrift/client/AbstractThriftClientKeyMapper.java // public abstract class AbstractThriftClientKeyMapper { // abstract public Map<String, ThriftClientKey> getMappings(); // } // // Path: autoconfigure/src/main/java/info/developerblog/spring/thrift/clien...
protected HashMap<String, ThriftClientKey> mappings = new HashMap<>();
aatarasoff/spring-thrift-starter
autoconfigure/src/main/java/ru/trylogic/spring/boot/thrift/ThriftAutoConfiguration.java
// Path: autoconfigure/src/main/java/ru/trylogic/spring/boot/thrift/aop/LoggingThriftMethodInterceptor.java // @Slf4j // public class LoggingThriftMethodInterceptor implements MethodBeforeAdvice, AfterReturningAdvice, ThrowsAdvice { // // @Override // public void before(Method method, Object[] args, Object tar...
import io.micrometer.core.instrument.MeterRegistry; import lombok.Getter; import lombok.Setter; import lombok.SneakyThrows; import org.apache.thrift.TProcessor; import org.apache.thrift.protocol.TBinaryProtocol; import org.apache.thrift.protocol.TProtocolFactory; import org.apache.thrift.server.TServlet; import org.spr...
package ru.trylogic.spring.boot.thrift; @Configuration @ConditionalOnClass({ThriftController.class}) @ConditionalOnWebApplication public class ThriftAutoConfiguration { public interface ThriftConfigurer { void configureProxyFactory(ProxyFactory proxyFactory); } @Bean @ConditionalOnMissingBe...
// Path: autoconfigure/src/main/java/ru/trylogic/spring/boot/thrift/aop/LoggingThriftMethodInterceptor.java // @Slf4j // public class LoggingThriftMethodInterceptor implements MethodBeforeAdvice, AfterReturningAdvice, ThrowsAdvice { // // @Override // public void before(Method method, Object[] args, Object tar...
@ConditionalOnMissingBean(LoggingThriftMethodInterceptor.class)
aatarasoff/spring-thrift-starter
autoconfigure/src/main/java/ru/trylogic/spring/boot/thrift/ThriftAutoConfiguration.java
// Path: autoconfigure/src/main/java/ru/trylogic/spring/boot/thrift/aop/LoggingThriftMethodInterceptor.java // @Slf4j // public class LoggingThriftMethodInterceptor implements MethodBeforeAdvice, AfterReturningAdvice, ThrowsAdvice { // // @Override // public void before(Method method, Object[] args, Object tar...
import io.micrometer.core.instrument.MeterRegistry; import lombok.Getter; import lombok.Setter; import lombok.SneakyThrows; import org.apache.thrift.TProcessor; import org.apache.thrift.protocol.TBinaryProtocol; import org.apache.thrift.protocol.TProtocolFactory; import org.apache.thrift.server.TServlet; import org.spr...
package ru.trylogic.spring.boot.thrift; @Configuration @ConditionalOnClass({ThriftController.class}) @ConditionalOnWebApplication public class ThriftAutoConfiguration { public interface ThriftConfigurer { void configureProxyFactory(ProxyFactory proxyFactory); } @Bean @ConditionalOnMissingBe...
// Path: autoconfigure/src/main/java/ru/trylogic/spring/boot/thrift/aop/LoggingThriftMethodInterceptor.java // @Slf4j // public class LoggingThriftMethodInterceptor implements MethodBeforeAdvice, AfterReturningAdvice, ThrowsAdvice { // // @Override // public void before(Method method, Object[] args, Object tar...
proxyFactory.addAdvice(new MetricsThriftMethodInterceptor(meterRegistry));
carrotsearch/hppc
hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/intrinsics/Empty.java
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
import com.carrotsearch.hppc.generator.TemplateOptions; import java.util.ArrayList; import java.util.regex.Matcher;
/* * HPPC * * Copyright (C) 2010-2020 Carrot Search s.c. * All rights reserved. * * Refer to the full license file "LICENSE.txt": * https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt */ package com.carrotsearch.hppc.generator.intrinsics; public class Empty extends AbstractIntrinsicMethod { @Overri...
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
TemplateOptions templateOptions,
carrotsearch/hppc
hppc/src/main/templates/com/carrotsearch/hppc/KTypeCollection.java
// Path: hppc/src/main/templates/com/carrotsearch/hppc/predicates/KTypePredicate.java // public interface KTypePredicate<KType> { // public boolean apply(KType value); // }
import com.carrotsearch.hppc.predicates.KTypePredicate;
package com.carrotsearch.hppc; /** * A collection allows basic, efficient operations on sets of elements * (difference and intersection). */ /*! ${TemplateOptions.generatedAnnotation} !*/ public interface KTypeCollection<KType> extends KTypeContainer<KType> { /** * Removes all occurrences of <code>e</code> fr...
// Path: hppc/src/main/templates/com/carrotsearch/hppc/predicates/KTypePredicate.java // public interface KTypePredicate<KType> { // public boolean apply(KType value); // } // Path: hppc/src/main/templates/com/carrotsearch/hppc/KTypeCollection.java import com.carrotsearch.hppc.predicates.KTypePredicate; package co...
public int removeAll(KTypePredicate<? super KType> predicate);
carrotsearch/hppc
hppc/src/main/templates/com/carrotsearch/hppc/AbstractKTypeCollection.java
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
import java.util.Arrays; import com.carrotsearch.hppc.cursors.KTypeCursor; import com.carrotsearch.hppc.predicates.KTypePredicate;
package com.carrotsearch.hppc; /** * Common superclass for collections. */ /*! #if ($TemplateOptions.KTypeGeneric) !*/ @SuppressWarnings("unchecked") /*! #end !*/ /*! ${TemplateOptions.generatedAnnotation} !*/ abstract class AbstractKTypeCollection<KType> implements /*! #if ($templateonly) !*/ Intrinsics.Equal...
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
public int retainAll(final KTypePredicate<? super KType> predicate) {
carrotsearch/hppc
hppc/src/main/templates/com/carrotsearch/hppc/AbstractKTypeCollection.java
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
import java.util.Arrays; import com.carrotsearch.hppc.cursors.KTypeCursor; import com.carrotsearch.hppc.predicates.KTypePredicate;
package com.carrotsearch.hppc; /** * Common superclass for collections. */ /*! #if ($TemplateOptions.KTypeGeneric) !*/ @SuppressWarnings("unchecked") /*! #end !*/ /*! ${TemplateOptions.generatedAnnotation} !*/ abstract class AbstractKTypeCollection<KType> implements /*! #if ($templateonly) !*/ Intrinsics.Equal...
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
for (KTypeCursor<KType> c : this) {
carrotsearch/hppc
hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/intrinsics/Cast.java
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
import com.carrotsearch.hppc.generator.TemplateOptions; import java.util.ArrayList; import java.util.regex.Matcher;
/* * HPPC * * Copyright (C) 2010-2020 Carrot Search s.c. * All rights reserved. * * Refer to the full license file "LICENSE.txt": * https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt */ package com.carrotsearch.hppc.generator.intrinsics; public class Cast extends AbstractIntrinsicMethod { @Overrid...
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
TemplateOptions templateOptions,
carrotsearch/hppc
hppc/src/main/templates/com/carrotsearch/hppc/KTypeDeque.java
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
import java.util.Deque; import java.util.Iterator; import com.carrotsearch.hppc.cursors.KTypeCursor; import com.carrotsearch.hppc.predicates.KTypePredicate; import com.carrotsearch.hppc.procedures.KTypeProcedure;
package com.carrotsearch.hppc; /** * A linear collection that supports element insertion and removal at both ends. * * @see Deque */ /*! ${TemplateOptions.generatedAnnotation} !*/ public interface KTypeDeque<KType> extends KTypeCollection<KType> { /** * Removes the first element that equals <code>e</code>....
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
public Iterator<KTypeCursor<KType>> descendingIterator();
carrotsearch/hppc
hppc/src/main/templates/com/carrotsearch/hppc/KTypeDeque.java
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
import java.util.Deque; import java.util.Iterator; import com.carrotsearch.hppc.cursors.KTypeCursor; import com.carrotsearch.hppc.predicates.KTypePredicate; import com.carrotsearch.hppc.procedures.KTypeProcedure;
package com.carrotsearch.hppc; /** * A linear collection that supports element insertion and removal at both ends. * * @see Deque */ /*! ${TemplateOptions.generatedAnnotation} !*/ public interface KTypeDeque<KType> extends KTypeCollection<KType> { /** * Removes the first element that equals <code>e</code>....
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
public <T extends KTypeProcedure<? super KType>> T descendingForEach(T procedure);
carrotsearch/hppc
hppc/src/main/templates/com/carrotsearch/hppc/KTypeDeque.java
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
import java.util.Deque; import java.util.Iterator; import com.carrotsearch.hppc.cursors.KTypeCursor; import com.carrotsearch.hppc.predicates.KTypePredicate; import com.carrotsearch.hppc.procedures.KTypeProcedure;
package com.carrotsearch.hppc; /** * A linear collection that supports element insertion and removal at both ends. * * @see Deque */ /*! ${TemplateOptions.generatedAnnotation} !*/ public interface KTypeDeque<KType> extends KTypeCollection<KType> { /** * Removes the first element that equals <code>e</code>....
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
public <T extends KTypePredicate<? super KType>> T descendingForEach(T predicate);
carrotsearch/hppc
hppc-benchmarks/src/jmh/java/com/carrotsearch/hppc/benchmarks/B008_HashMap_Get_Random.java
// Path: hppc/src/main/java/com/carrotsearch/hppc/XorShift128P.java // public class XorShift128P { // /* // * 128 bits of state. // */ // private long state0, state1; // // public XorShift128P(long seed) { // state0 = notZero(BitMixer.mix64(seed)); // state1 = notZero(BitMixer.mix64(seed + 1)); // ...
import com.carrotsearch.hppc.XorShift128P; import org.openjdk.jmh.annotations.*; import org.openjdk.jmh.runner.Runner; import org.openjdk.jmh.runner.RunnerException; import org.openjdk.jmh.runner.options.Options; import org.openjdk.jmh.runner.options.OptionsBuilder;
/* * HPPC * * Copyright (C) 2010-2020 Carrot Search s.c. * All rights reserved. * * Refer to the full license file "LICENSE.txt": * https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt */ package com.carrotsearch.hppc.benchmarks; // To normalize the measure, run B009_Random to know how much time XorSh...
// Path: hppc/src/main/java/com/carrotsearch/hppc/XorShift128P.java // public class XorShift128P { // /* // * 128 bits of state. // */ // private long state0, state1; // // public XorShift128P(long seed) { // state0 = notZero(BitMixer.mix64(seed)); // state1 = notZero(BitMixer.mix64(seed + 1)); // ...
public XorShift128P rnd;
carrotsearch/hppc
hppc-benchmarks/src/jmh/java/com/carrotsearch/hppc/benchmarks/B002_HashSet_Add.java
// Path: hppc/src/main/java/com/carrotsearch/hppc/XorShift128P.java // public class XorShift128P { // /* // * 128 bits of state. // */ // private long state0, state1; // // public XorShift128P(long seed) { // state0 = notZero(BitMixer.mix64(seed)); // state1 = notZero(BitMixer.mix64(seed + 1)); // ...
import com.carrotsearch.hppc.XorShift128P; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations.BenchmarkMode; import org.openjdk.jmh.annotations.Fork; import org.openjdk.jmh.annotations.Level; import org.openjdk.jmh.annotations.Measurement; import org.openjdk.jmh.annotations.Mode; import or...
/* * HPPC * * Copyright (C) 2010-2020 Carrot Search s.c. * All rights reserved. * * Refer to the full license file "LICENSE.txt": * https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt */ package com.carrotsearch.hppc.benchmarks; @Fork(1) @Warmup(iterations = 5) @Measurement(iterations = 5) @State(Sco...
// Path: hppc/src/main/java/com/carrotsearch/hppc/XorShift128P.java // public class XorShift128P { // /* // * 128 bits of state. // */ // private long state0, state1; // // public XorShift128P(long seed) { // state0 = notZero(BitMixer.mix64(seed)); // state1 = notZero(BitMixer.mix64(seed + 1)); // ...
XorShift128P rnd = new XorShift128P(0xdeadbeefL);
carrotsearch/hppc
hppc/src/main/templates/com/carrotsearch/hppc/KTypeVTypeMap.java
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeVTypeCursor.java // public final class KTypeVTypeCursor<KType, VType> { // /** // * The current key and value's index in the container this cursor belongs to. // * The meaning of this index is defined by the container (usually it will be // ...
import com.carrotsearch.hppc.cursors.KTypeVTypeCursor;
/*! #set($TemplateOptions.ignored = ($TemplateOptions.isKTypeAnyOf("DOUBLE", "FLOAT", "BYTE"))) !*/ package com.carrotsearch.hppc; /** * An associative container with unique binding from keys to a single value. */ /*! ${TemplateOptions.generatedAnnotation} !*/ public interface KTypeVTypeMap<KType, VType> extends KT...
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeVTypeCursor.java // public final class KTypeVTypeCursor<KType, VType> { // /** // * The current key and value's index in the container this cursor belongs to. // * The meaning of this index is defined by the container (usually it will be // ...
public int putAll(Iterable<? extends KTypeVTypeCursor<? extends KType, ? extends VType>> iterable);
carrotsearch/hppc
hppc/src/main/templates/com/carrotsearch/hppc/KTypeArrayList.java
// Path: hppc/src/main/templates/com/carrotsearch/hppc/predicates/KTypePredicate.java // public interface KTypePredicate<KType> { // public boolean apply(KType value); // } // // Path: hppc/src/main/java/com/carrotsearch/hppc/Containers.java // public final class Containers { // /** The default number of expected ...
import java.util.*; import com.carrotsearch.hppc.cursors.*; import com.carrotsearch.hppc.predicates.KTypePredicate; import com.carrotsearch.hppc.procedures.*; import static com.carrotsearch.hppc.Containers.*;
public <T extends KTypeProcedure<? super KType>> T forEach(T procedure) { return forEach(procedure, 0, size()); } /** * Applies <code>procedure</code> to a slice of the list, * <code>fromIndex</code>, inclusive, to <code>toIndex</code>, exclusive. */ public <T extends KTypeProcedure<? super KType>...
// Path: hppc/src/main/templates/com/carrotsearch/hppc/predicates/KTypePredicate.java // public interface KTypePredicate<KType> { // public boolean apply(KType value); // } // // Path: hppc/src/main/java/com/carrotsearch/hppc/Containers.java // public final class Containers { // /** The default number of expected ...
public int removeAll(KTypePredicate<? super KType> predicate) {
carrotsearch/hppc
hppc/src/test/java/com/carrotsearch/hppc/sorting/IndirectSortTest.java
// Path: hppc/src/main/java/com/carrotsearch/hppc/XorShift128P.java // public class XorShift128P { // /* // * 128 bits of state. // */ // private long state0, state1; // // public XorShift128P(long seed) { // state0 = notZero(BitMixer.mix64(seed)); // state1 = notZero(BitMixer.mix64(seed + 1)); // ...
import static org.junit.Assert.*; import com.carrotsearch.hppc.XorShift128P; import java.util.Arrays; import java.util.Random; import java.util.function.IntBinaryOperator; import org.junit.*;
assertOrder(order, length, intBinaryOperator); } } /** Randomized input, ascending double comparator. */ @Test public void testAscDouble() { final int maxSize = 1000; final int rounds = 1000; final Random rnd = new Random(0x11223344); for (int round = 0; round < rounds; round++) { ...
// Path: hppc/src/main/java/com/carrotsearch/hppc/XorShift128P.java // public class XorShift128P { // /* // * 128 bits of state. // */ // private long state0, state1; // // public XorShift128P(long seed) { // state0 = notZero(BitMixer.mix64(seed)); // state1 = notZero(BitMixer.mix64(seed + 1)); // ...
final XorShift128P rnd = new XorShift128P(0xdeadbeefL);
carrotsearch/hppc
hppc/src/test/templates/com/carrotsearch/hppc/KTypeVTypeWormMapTest.java
// Path: hppc/src/test/java/com/carrotsearch/hppc/TestUtils.java // public static void assertEquals2(double a, double b) { // org.junit.Assert.assertEquals(a, b, delta); // } // // Path: hppc/src/test/java/com/carrotsearch/hppc/TestUtils.java // public static void assertSortedListEquals(Object[] array, Object... ele...
import com.carrotsearch.hppc.cursors.*; import com.carrotsearch.hppc.predicates.*; import com.carrotsearch.hppc.procedures.*; import org.assertj.core.api.Assertions; import org.junit.After; import org.junit.Test; import java.util.*; import static com.carrotsearch.hppc.TestUtils.assertEquals2; import static com.carrotse...
/*! #set($TemplateOptions.ignored = ($TemplateOptions.isKTypeAnyOf("DOUBLE", "FLOAT", "BYTE"))) !*/ package com.carrotsearch.hppc; /** * Tests for {@link KTypeVTypeWormMap}. */ /* ! ${TemplateOptions.generatedAnnotation} ! */ public class KTypeVTypeWormMapTest<KType, VType> extends AbstractKTypeVTypeTest<KType, V...
// Path: hppc/src/test/java/com/carrotsearch/hppc/TestUtils.java // public static void assertEquals2(double a, double b) { // org.junit.Assert.assertEquals(a, b, delta); // } // // Path: hppc/src/test/java/com/carrotsearch/hppc/TestUtils.java // public static void assertSortedListEquals(Object[] array, Object... ele...
TestUtils.assertEquals2(Intrinsics.<KType> empty(), map.keys[i]);
carrotsearch/hppc
hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/intrinsics/IsEmpty.java
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
import com.carrotsearch.hppc.generator.TemplateOptions; import java.util.ArrayList; import java.util.regex.Matcher;
/* * HPPC * * Copyright (C) 2010-2020 Carrot Search s.c. * All rights reserved. * * Refer to the full license file "LICENSE.txt": * https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt */ package com.carrotsearch.hppc.generator.intrinsics; public class IsEmpty extends AbstractIntrinsicMethod { @Over...
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
TemplateOptions templateOptions,
carrotsearch/hppc
hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/parser/SignatureReplacementVisitor.java
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
import com.carrotsearch.hppc.generator.TemplateOptions; import com.carrotsearch.hppc.generator.Type; import com.carrotsearch.hppc.generator.parser.JavaParser.ClassDeclarationContext; import com.carrotsearch.hppc.generator.parser.JavaParser.ClassOrInterfaceTypeContext; import com.carrotsearch.hppc.generator.parser.JavaP...
/* * HPPC * * Copyright (C) 2010-2020 Carrot Search s.c. * All rights reserved. * * Refer to the full license file "LICENSE.txt": * https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt */ package com.carrotsearch.hppc.generator.parser; class SignatureReplacementVisitor extends JavaParserBaseVisitor<Li...
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
private final TemplateOptions templateOptions;
carrotsearch/hppc
hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/intrinsics/Add.java
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
import com.carrotsearch.hppc.generator.TemplateOptions; import com.carrotsearch.hppc.generator.Type; import java.util.ArrayList; import java.util.Locale; import java.util.regex.Matcher;
/* * HPPC * * Copyright (C) 2010-2020 Carrot Search s.c. * All rights reserved. * * Refer to the full license file "LICENSE.txt": * https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt */ package com.carrotsearch.hppc.generator.intrinsics; public class Add extends AbstractIntrinsicMethod { @Override...
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
TemplateOptions templateOptions,
carrotsearch/hppc
hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/intrinsics/Add.java
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
import com.carrotsearch.hppc.generator.TemplateOptions; import com.carrotsearch.hppc.generator.Type; import java.util.ArrayList; import java.util.Locale; import java.util.regex.Matcher;
/* * HPPC * * Copyright (C) 2010-2020 Carrot Search s.c. * All rights reserved. * * Refer to the full license file "LICENSE.txt": * https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt */ package com.carrotsearch.hppc.generator.intrinsics; public class Add extends AbstractIntrinsicMethod { @Override...
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
Type type = inferTemplateType(m, templateOptions, genericCast);
carrotsearch/hppc
hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/intrinsics/Equals.java
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
import com.carrotsearch.hppc.generator.TemplateOptions; import com.carrotsearch.hppc.generator.Type; import java.util.ArrayList; import java.util.regex.Matcher;
/* * HPPC * * Copyright (C) 2010-2020 Carrot Search s.c. * All rights reserved. * * Refer to the full license file "LICENSE.txt": * https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt */ package com.carrotsearch.hppc.generator.intrinsics; public class Equals extends AbstractIntrinsicMethod { @Overr...
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
TemplateOptions templateOptions,
carrotsearch/hppc
hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/intrinsics/Equals.java
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
import com.carrotsearch.hppc.generator.TemplateOptions; import com.carrotsearch.hppc.generator.Type; import java.util.ArrayList; import java.util.regex.Matcher;
/* * HPPC * * Copyright (C) 2010-2020 Carrot Search s.c. * All rights reserved. * * Refer to the full license file "LICENSE.txt": * https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt */ package com.carrotsearch.hppc.generator.intrinsics; public class Equals extends AbstractIntrinsicMethod { @Overr...
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
Type type = inferTemplateType(m, templateOptions, genericCast);
carrotsearch/hppc
hppc-benchmarks/src/jmh/java/com/carrotsearch/hppc/benchmarks/B003_HashSet_Contains.java
// Path: hppc/src/main/java/com/carrotsearch/hppc/XorShift128P.java // public class XorShift128P { // /* // * 128 bits of state. // */ // private long state0, state1; // // public XorShift128P(long seed) { // state0 = notZero(BitMixer.mix64(seed)); // state1 = notZero(BitMixer.mix64(seed + 1)); // ...
import com.carrotsearch.hppc.XorShift128P; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations.BenchmarkMode; import org.openjdk.jmh.annotations.Fork; import org.openjdk.jmh.annotations.Level; import org.openjdk.jmh.annotations.Measurement; import org.openjdk.jmh.annotations.Mode; import or...
/* * HPPC * * Copyright (C) 2010-2020 Carrot Search s.c. * All rights reserved. * * Refer to the full license file "LICENSE.txt": * https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt */ package com.carrotsearch.hppc.benchmarks; @Fork(1) @Warmup(iterations = 5) @Measurement(iterations = 5) @State(Sco...
// Path: hppc/src/main/java/com/carrotsearch/hppc/XorShift128P.java // public class XorShift128P { // /* // * 128 bits of state. // */ // private long state0, state1; // // public XorShift128P(long seed) { // state0 = notZero(BitMixer.mix64(seed)); // state1 = notZero(BitMixer.mix64(seed + 1)); // ...
XorShift128P rnd = new XorShift128P(0xdeadbeefL);
carrotsearch/hppc
hppc/src/main/templates/com/carrotsearch/hppc/KTypeContainer.java
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
import java.util.Iterator; import com.carrotsearch.hppc.cursors.KTypeCursor; import com.carrotsearch.hppc.predicates.KTypePredicate; import com.carrotsearch.hppc.procedures.KTypeProcedure;
package com.carrotsearch.hppc; /** * A generic container holding <code>KType</code>s. */ /*! ${TemplateOptions.generatedAnnotation} !*/ public interface KTypeContainer<KType> extends Iterable<KTypeCursor<KType>> { /** * Returns an iterator to a cursor traversing the collection. The order of * traversal is ...
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
public <T extends KTypeProcedure<? super KType>> T forEach(T procedure);
carrotsearch/hppc
hppc/src/main/templates/com/carrotsearch/hppc/KTypeContainer.java
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
import java.util.Iterator; import com.carrotsearch.hppc.cursors.KTypeCursor; import com.carrotsearch.hppc.predicates.KTypePredicate; import com.carrotsearch.hppc.procedures.KTypeProcedure;
package com.carrotsearch.hppc; /** * A generic container holding <code>KType</code>s. */ /*! ${TemplateOptions.generatedAnnotation} !*/ public interface KTypeContainer<KType> extends Iterable<KTypeCursor<KType>> { /** * Returns an iterator to a cursor traversing the collection. The order of * traversal is ...
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
public <T extends KTypePredicate<? super KType>> T forEach(T predicate);
carrotsearch/hppc
hppc-benchmarks/src/jmh/java/com/carrotsearch/hppc/benchmarks/B006_HashSet_Contains_Random.java
// Path: hppc/src/main/java/com/carrotsearch/hppc/XorShift128P.java // public class XorShift128P { // /* // * 128 bits of state. // */ // private long state0, state1; // // public XorShift128P(long seed) { // state0 = notZero(BitMixer.mix64(seed)); // state1 = notZero(BitMixer.mix64(seed + 1)); // ...
import com.carrotsearch.hppc.XorShift128P; import org.openjdk.jmh.annotations.*; import org.openjdk.jmh.runner.Runner; import org.openjdk.jmh.runner.RunnerException; import org.openjdk.jmh.runner.options.Options; import org.openjdk.jmh.runner.options.OptionsBuilder;
/* * HPPC * * Copyright (C) 2010-2020 Carrot Search s.c. * All rights reserved. * * Refer to the full license file "LICENSE.txt": * https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt */ package com.carrotsearch.hppc.benchmarks; // To normalize the measure, run B009_Random to know how much time XorSh...
// Path: hppc/src/main/java/com/carrotsearch/hppc/XorShift128P.java // public class XorShift128P { // /* // * 128 bits of state. // */ // private long state0, state1; // // public XorShift128P(long seed) { // state0 = notZero(BitMixer.mix64(seed)); // state1 = notZero(BitMixer.mix64(seed + 1)); // ...
public XorShift128P rnd;
carrotsearch/hppc
hppc/src/test/templates/com/carrotsearch/hppc/KTypeWormSetTest.java
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
import com.carrotsearch.hppc.cursors.KTypeCursor; import com.carrotsearch.hppc.predicates.KTypePredicate; import com.carrotsearch.hppc.procedures.KTypeProcedure; import com.carrotsearch.randomizedtesting.RandomizedTest; import org.assertj.core.api.Assertions; import org.junit.Before; import org.junit.Test; import java....
KTypeWormSet<KType> l3 = new Sub(); l2.addAll(l1); l3.addAll(l1); Assertions.assertThat(l2).isEqualTo(l3); Assertions.assertThat(l1).isNotEqualTo(l2); } /* */ @Test public void testForEachPredicate() { final KTypeWormSet<KType> set = KTypeWormSet.f...
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
set.forEach(new KTypeProcedure<KType>() {
carrotsearch/hppc
hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/intrinsics/AbstractIntrinsicMethod.java
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/IntrinsicMethod.java // public interface IntrinsicMethod { // void invoke( // Matcher m, // StringBuilder sb, // TemplateOptions templateOptions, // String genericCast, // ArrayList<String> params); // } // /...
import com.carrotsearch.hppc.generator.IntrinsicMethod; import com.carrotsearch.hppc.generator.TemplateOptions; import com.carrotsearch.hppc.generator.Type; import java.util.ArrayList; import java.util.Locale; import java.util.regex.Matcher;
/* * HPPC * * Copyright (C) 2010-2020 Carrot Search s.c. * All rights reserved. * * Refer to the full license file "LICENSE.txt": * https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt */ package com.carrotsearch.hppc.generator.intrinsics; abstract class AbstractIntrinsicMethod implements IntrinsicMet...
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/IntrinsicMethod.java // public interface IntrinsicMethod { // void invoke( // Matcher m, // StringBuilder sb, // TemplateOptions templateOptions, // String genericCast, // ArrayList<String> params); // } // /...
Matcher m, TemplateOptions templateOptions, String templateCast) {
carrotsearch/hppc
hppc-benchmarks/src/jmh/java/com/carrotsearch/hppc/benchmarks/B007_HashMap_Put_Random.java
// Path: hppc/src/main/java/com/carrotsearch/hppc/XorShift128P.java // public class XorShift128P { // /* // * 128 bits of state. // */ // private long state0, state1; // // public XorShift128P(long seed) { // state0 = notZero(BitMixer.mix64(seed)); // state1 = notZero(BitMixer.mix64(seed + 1)); // ...
import com.carrotsearch.hppc.XorShift128P; import org.openjdk.jmh.annotations.*; import org.openjdk.jmh.runner.Runner; import org.openjdk.jmh.runner.RunnerException; import org.openjdk.jmh.runner.options.Options; import org.openjdk.jmh.runner.options.OptionsBuilder;
/* * HPPC * * Copyright (C) 2010-2020 Carrot Search s.c. * All rights reserved. * * Refer to the full license file "LICENSE.txt": * https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt */ package com.carrotsearch.hppc.benchmarks; // To normalize the measure, run B009_Random to know how much time XorSh...
// Path: hppc/src/main/java/com/carrotsearch/hppc/XorShift128P.java // public class XorShift128P { // /* // * 128 bits of state. // */ // private long state0, state1; // // public XorShift128P(long seed) { // state0 = notZero(BitMixer.mix64(seed)); // state1 = notZero(BitMixer.mix64(seed + 1)); // ...
public XorShift128P rnd;
carrotsearch/hppc
hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/intrinsics/NewArray.java
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
import com.carrotsearch.hppc.generator.TemplateOptions; import com.carrotsearch.hppc.generator.Type; import java.util.ArrayList; import java.util.regex.Matcher;
/* * HPPC * * Copyright (C) 2010-2020 Carrot Search s.c. * All rights reserved. * * Refer to the full license file "LICENSE.txt": * https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt */ package com.carrotsearch.hppc.generator.intrinsics; public class NewArray extends AbstractIntrinsicMethod { @Ove...
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
TemplateOptions templateOptions,
carrotsearch/hppc
hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/intrinsics/NewArray.java
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
import com.carrotsearch.hppc.generator.TemplateOptions; import com.carrotsearch.hppc.generator.Type; import java.util.ArrayList; import java.util.regex.Matcher;
/* * HPPC * * Copyright (C) 2010-2020 Carrot Search s.c. * All rights reserved. * * Refer to the full license file "LICENSE.txt": * https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt */ package com.carrotsearch.hppc.generator.intrinsics; public class NewArray extends AbstractIntrinsicMethod { @Ove...
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
Type type = inferTemplateType(m, templateOptions, genericCast);
carrotsearch/hppc
hppc-benchmarks/src/jmh/java/com/carrotsearch/hppc/benchmarks/B005_HashSet_Add_Random.java
// Path: hppc/src/main/java/com/carrotsearch/hppc/XorShift128P.java // public class XorShift128P { // /* // * 128 bits of state. // */ // private long state0, state1; // // public XorShift128P(long seed) { // state0 = notZero(BitMixer.mix64(seed)); // state1 = notZero(BitMixer.mix64(seed + 1)); // ...
import com.carrotsearch.hppc.XorShift128P; import org.openjdk.jmh.annotations.*; import org.openjdk.jmh.runner.Runner; import org.openjdk.jmh.runner.RunnerException; import org.openjdk.jmh.runner.options.Options; import org.openjdk.jmh.runner.options.OptionsBuilder;
/* * HPPC * * Copyright (C) 2010-2020 Carrot Search s.c. * All rights reserved. * * Refer to the full license file "LICENSE.txt": * https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt */ package com.carrotsearch.hppc.benchmarks; // To normalize the measure, run B009_Random to know how much time XorSh...
// Path: hppc/src/main/java/com/carrotsearch/hppc/XorShift128P.java // public class XorShift128P { // /* // * 128 bits of state. // */ // private long state0, state1; // // public XorShift128P(long seed) { // state0 = notZero(BitMixer.mix64(seed)); // state1 = notZero(BitMixer.mix64(seed + 1)); // ...
public XorShift128P rnd;
carrotsearch/hppc
hppc/src/main/templates/com/carrotsearch/hppc/KTypeArrayDeque.java
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
import java.util.*; import com.carrotsearch.hppc.cursors.KTypeCursor; import com.carrotsearch.hppc.predicates.KTypePredicate; import com.carrotsearch.hppc.procedures.KTypeProcedure; import static com.carrotsearch.hppc.Containers.*;
/** * Vararg-signature method for adding elements at the front of this deque. * * <p><b>This method is handy, but costly if used in tight loops (anonymous * array passing)</b></p> * * @param elements The elements to add. */ /* #if ($TemplateOptions.KTypeGeneric) */ @SafeVarargs /* #end *...
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
for (KTypeCursor<? extends KType> cursor : container) {
carrotsearch/hppc
hppc/src/main/templates/com/carrotsearch/hppc/KTypeArrayDeque.java
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
import java.util.*; import com.carrotsearch.hppc.cursors.KTypeCursor; import com.carrotsearch.hppc.predicates.KTypePredicate; import com.carrotsearch.hppc.procedures.KTypeProcedure; import static com.carrotsearch.hppc.Containers.*;
* System.out.println(&quot;buffer index=&quot; + c.index + &quot; value=&quot; + c.value); * } * </pre> */ public Iterator<KTypeCursor<KType>> iterator() { return new ValueIterator(); } /** * Returns a cursor over the values of this deque (in tail to head order). The * iterator is impleme...
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
public <T extends KTypeProcedure<? super KType>> T forEach(T procedure) {
carrotsearch/hppc
hppc/src/main/templates/com/carrotsearch/hppc/KTypeArrayDeque.java
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
import java.util.*; import com.carrotsearch.hppc.cursors.KTypeCursor; import com.carrotsearch.hppc.predicates.KTypePredicate; import com.carrotsearch.hppc.procedures.KTypeProcedure; import static com.carrotsearch.hppc.Containers.*;
* </pre> */ public Iterator<KTypeCursor<KType>> descendingIterator() { return new DescendingValueIterator(); } /** * {@inheritDoc} */ @Override public <T extends KTypeProcedure<? super KType>> T forEach(T procedure) { forEach(procedure, head, tail); return procedure; } /** * A...
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
public <T extends KTypePredicate<? super KType>> T forEach(T predicate) {
carrotsearch/hppc
hppc-template-processor/src/test/java/com/carrotsearch/hppc/generator/parser/TestSignatureProcessor.java
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
import com.carrotsearch.hppc.generator.TemplateOptions; import com.carrotsearch.hppc.generator.Type; import com.carrotsearch.randomizedtesting.RandomizedRunner; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.UncheckedIOException; import java.nio.charset.Stan...
/* * HPPC * * Copyright (C) 2010-2020 Carrot Search s.c. * All rights reserved. * * Refer to the full license file "LICENSE.txt": * https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt */ package com.carrotsearch.hppc.generator.parser; @RunWith(RandomizedRunner.class) public class TestSignatureProcess...
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
new TemplateOptions(Type.GENERIC, Type.GENERIC),
carrotsearch/hppc
hppc-template-processor/src/test/java/com/carrotsearch/hppc/generator/parser/TestSignatureProcessor.java
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
import com.carrotsearch.hppc.generator.TemplateOptions; import com.carrotsearch.hppc.generator.Type; import com.carrotsearch.randomizedtesting.RandomizedRunner; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.UncheckedIOException; import java.nio.charset.Stan...
/* * HPPC * * Copyright (C) 2010-2020 Carrot Search s.c. * All rights reserved. * * Refer to the full license file "LICENSE.txt": * https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt */ package com.carrotsearch.hppc.generator.parser; @RunWith(RandomizedRunner.class) public class TestSignatureProcess...
// Path: hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java // public class TemplateOptions { // public static final String TEMPLATE_FILE_TOKEN = "__TEMPLATE_SOURCE__"; // // private boolean ignore; // // public Type ktype; // public Type vtype; // // public Path tem...
new TemplateOptions(Type.GENERIC, Type.GENERIC),
carrotsearch/hppc
hppc/src/main/templates/com/carrotsearch/hppc/KTypeStack.java
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
import java.util.Arrays; import com.carrotsearch.hppc.cursors.KTypeCursor;
ensureBufferSpace(len); System.arraycopy(elements, start, buffer, elementsCount, len); elementsCount += len; } /** * Vararg-signature method for pushing elements at the top of the stack. * <p> * <b>This method is handy, but costly if used in tight loops (anonymous array * passing)</b> *...
// Path: hppc/src/main/templates/com/carrotsearch/hppc/cursors/KTypeCursor.java // public final class KTypeCursor<KType> { // /** // * The current value's index in the container this cursor belongs to. The // * meaning of this index is defined by the container (usually it will be an // * index in the underly...
public int pushAll(Iterable<? extends KTypeCursor<? extends KType>> iterable) {
carrotsearch/hppc
hppc-benchmarks/src/jmh/java/com/carrotsearch/hppc/benchmarks/B009_Random.java
// Path: hppc/src/main/java/com/carrotsearch/hppc/XorShift128P.java // public class XorShift128P { // /* // * 128 bits of state. // */ // private long state0, state1; // // public XorShift128P(long seed) { // state0 = notZero(BitMixer.mix64(seed)); // state1 = notZero(BitMixer.mix64(seed + 1)); // ...
import com.carrotsearch.hppc.XorShift128P; import org.openjdk.jmh.annotations.*; import org.openjdk.jmh.runner.Runner; import org.openjdk.jmh.runner.RunnerException; import org.openjdk.jmh.runner.options.Options; import org.openjdk.jmh.runner.options.OptionsBuilder;
/* * HPPC * * Copyright (C) 2010-2020 Carrot Search s.c. * All rights reserved. * * Refer to the full license file "LICENSE.txt": * https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt */ package com.carrotsearch.hppc.benchmarks; @Fork(1) @Warmup(iterations = 10) @Measurement(iterations = 10) @State(S...
// Path: hppc/src/main/java/com/carrotsearch/hppc/XorShift128P.java // public class XorShift128P { // /* // * 128 bits of state. // */ // private long state0, state1; // // public XorShift128P(long seed) { // state0 = notZero(BitMixer.mix64(seed)); // state1 = notZero(BitMixer.mix64(seed + 1)); // ...
public XorShift128P rnd;
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/Main.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import com.jaeckel.geth.json.PersonalNewAccountResponse; import com.thetransactioncompany.jsonrpc2.JSONRPC2Erro...
package com.jaeckel.geth; public class Main { public static void main(String[] args) throws Exception { System.out.println("main()"); GethConnector gethConnector = new GethConnector();
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
gethConnector.netPeerCount(new EthereumJsonRpc.Callback<NetPeerCountResponse>() {
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/Main.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import com.jaeckel.geth.json.PersonalNewAccountResponse; import com.thetransactioncompany.jsonrpc2.JSONRPC2Erro...
package com.jaeckel.geth; public class Main { public static void main(String[] args) throws Exception { System.out.println("main()"); GethConnector gethConnector = new GethConnector(); gethConnector.netPeerCount(new EthereumJsonRpc.Callback<NetPeerCountResponse>() { @Override...
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
gethConnector.ethSyncing(new EthereumJsonRpc.Callback<EthSyncingResponse>() {
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/Main.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import com.jaeckel.geth.json.PersonalNewAccountResponse; import com.thetransactioncompany.jsonrpc2.JSONRPC2Erro...
package com.jaeckel.geth; public class Main { public static void main(String[] args) throws Exception { System.out.println("main()"); GethConnector gethConnector = new GethConnector(); gethConnector.netPeerCount(new EthereumJsonRpc.Callback<NetPeerCountResponse>() { @Override...
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
gethConnector.ethAccounts(new EthereumJsonRpc.Callback<EthAccountsResponse>() {
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/Main.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import com.jaeckel.geth.json.PersonalNewAccountResponse; import com.thetransactioncompany.jsonrpc2.JSONRPC2Erro...
@Override public void onError(JSONRPC2Error error) { System.out.println("error: " + error); } }); gethConnector.ethSyncing(new EthereumJsonRpc.Callback<EthSyncingResponse>() { @Override public void onResult(EthSyncingResponse e...
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
gethConnector.personalListAccounts(new EthereumJsonRpc.Callback<PersonalListAccountsResponse>() {
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/Main.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import com.jaeckel.geth.json.PersonalNewAccountResponse; import com.thetransactioncompany.jsonrpc2.JSONRPC2Erro...
@Override public void onError(JSONRPC2Error error) { System.out.println("error: " + error); } }); gethConnector.ethAccounts(new EthereumJsonRpc.Callback<EthAccountsResponse>() { @Override public void onResult(EthAccountsRespon...
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
gethConnector.personalNewAccount("", new EthereumJsonRpc.Callback<PersonalNewAccountResponse>() {
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/EthereumJsonRpc.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthBlockNumberResponse; import com.jaeckel.geth.json.EthGetBalanceResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import...
package com.jaeckel.geth; public interface EthereumJsonRpc { void netPeerCount(Callback<NetPeerCountResponse> callback) throws IOException;
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
void ethSyncing(Callback<EthSyncingResponse> callback) throws IOException;
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/EthereumJsonRpc.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthBlockNumberResponse; import com.jaeckel.geth.json.EthGetBalanceResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import...
package com.jaeckel.geth; public interface EthereumJsonRpc { void netPeerCount(Callback<NetPeerCountResponse> callback) throws IOException; void ethSyncing(Callback<EthSyncingResponse> callback) throws IOException;
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
void ethBlockNumber(Callback<EthBlockNumberResponse> callback) throws IOException;
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/EthereumJsonRpc.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthBlockNumberResponse; import com.jaeckel.geth.json.EthGetBalanceResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import...
package com.jaeckel.geth; public interface EthereumJsonRpc { void netPeerCount(Callback<NetPeerCountResponse> callback) throws IOException; void ethSyncing(Callback<EthSyncingResponse> callback) throws IOException; void ethBlockNumber(Callback<EthBlockNumberResponse> callback) throws IOException;
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
void ethAccounts(Callback<EthAccountsResponse> callback) throws IOException;
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/EthereumJsonRpc.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthBlockNumberResponse; import com.jaeckel.geth.json.EthGetBalanceResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import...
package com.jaeckel.geth; public interface EthereumJsonRpc { void netPeerCount(Callback<NetPeerCountResponse> callback) throws IOException; void ethSyncing(Callback<EthSyncingResponse> callback) throws IOException; void ethBlockNumber(Callback<EthBlockNumberResponse> callback) throws IOException; ...
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
void personalListAccounts(Callback<PersonalListAccountsResponse> callback) throws IOException;
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/EthereumJsonRpc.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthBlockNumberResponse; import com.jaeckel.geth.json.EthGetBalanceResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import...
package com.jaeckel.geth; public interface EthereumJsonRpc { void netPeerCount(Callback<NetPeerCountResponse> callback) throws IOException; void ethSyncing(Callback<EthSyncingResponse> callback) throws IOException; void ethBlockNumber(Callback<EthBlockNumberResponse> callback) throws IOException; ...
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
void personalNewAccount(String password, Callback<PersonalNewAccountResponse> callback) throws IOException;
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/EthereumJsonRpc.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthBlockNumberResponse; import com.jaeckel.geth.json.EthGetBalanceResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import...
package com.jaeckel.geth; public interface EthereumJsonRpc { void netPeerCount(Callback<NetPeerCountResponse> callback) throws IOException; void ethSyncing(Callback<EthSyncingResponse> callback) throws IOException; void ethBlockNumber(Callback<EthBlockNumberResponse> callback) throws IOException; ...
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
void personalUnlockAccount(String address, String password, int timeInSeconds, Callback<PersonalUnlockAccountResponse> callback) throws IOException;
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/EthereumJsonRpc.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthBlockNumberResponse; import com.jaeckel.geth.json.EthGetBalanceResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import...
package com.jaeckel.geth; public interface EthereumJsonRpc { void netPeerCount(Callback<NetPeerCountResponse> callback) throws IOException; void ethSyncing(Callback<EthSyncingResponse> callback) throws IOException; void ethBlockNumber(Callback<EthBlockNumberResponse> callback) throws IOException; ...
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
void ethGetBalance(String address, String blockParameter, Callback<EthGetBalanceResponse> ethGetBalanceCallback) throws IOException;
biafra23/EtherWallet
app/src/main/java/com/jaeckel/etherwallet/EtherApp.java
// Path: app/src/main/java/com/jaeckel/etherwallet/util/DebugTree.java // public class DebugTree extends Timber.Tree { // private static final int MAX_LOG_LENGTH = 4000; // private static final int CALL_STACK_INDEX = 5; // private static final Pattern ANONYMOUS_CLASS = Pattern.compile("(\\$\\d+)+$"); // ...
import android.app.Application; import com.jaeckel.etherwallet.util.DebugTree; import timber.log.Timber;
package com.jaeckel.etherwallet; public class EtherApp extends Application { @Override public void onCreate() { super.onCreate();
// Path: app/src/main/java/com/jaeckel/etherwallet/util/DebugTree.java // public class DebugTree extends Timber.Tree { // private static final int MAX_LOG_LENGTH = 4000; // private static final int CALL_STACK_INDEX = 5; // private static final Pattern ANONYMOUS_CLASS = Pattern.compile("(\\$\\d+)+$"); // ...
Timber.plant(new DebugTree());
biafra23/EtherWallet
geth-connector/src/test/java/com/jaeckel/geth/json/PersonalNewAccountResponseTest.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/MoshiFactory.java // public class MoshiFactory { // // public static Moshi createMoshi() { // return new Moshi.Builder() // .add(new HexAdapter()) // .add(new FalseToNullFactory()) // .add(new EthSyncingR...
import com.jaeckel.geth.MoshiFactory; import com.squareup.moshi.JsonAdapter; import com.squareup.moshi.Moshi; import java.io.IOException; import java.io.InputStream; import org.junit.Before; import org.junit.Test; import okio.BufferedSource; import okio.Okio; import static org.hamcrest.CoreMatchers.is; import static or...
package com.jaeckel.geth.json; public class PersonalNewAccountResponseTest { Moshi moshi; @Before public void setUp() {
// Path: geth-connector/src/main/java/com/jaeckel/geth/MoshiFactory.java // public class MoshiFactory { // // public static Moshi createMoshi() { // return new Moshi.Builder() // .add(new HexAdapter()) // .add(new FalseToNullFactory()) // .add(new EthSyncingR...
moshi = MoshiFactory.createMoshi();
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/MoshiFactory.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthSyncingResultAdapter.java // public class EthSyncingResultAdapter { // // @ToJson // EthSyncingResultJson toJson(@FalseToNull EthSyncingResult in) { // EthSyncingResultJson out = new EthSyncingResultJson(); // out.currentBlock = in....
import com.jaeckel.geth.json.EthSyncingResultAdapter; import com.jaeckel.geth.json.FalseToNullFactory; import com.jaeckel.geth.json.HexAdapter; import com.squareup.moshi.Moshi;
package com.jaeckel.geth; public class MoshiFactory { public static Moshi createMoshi() { return new Moshi.Builder()
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthSyncingResultAdapter.java // public class EthSyncingResultAdapter { // // @ToJson // EthSyncingResultJson toJson(@FalseToNull EthSyncingResult in) { // EthSyncingResultJson out = new EthSyncingResultJson(); // out.currentBlock = in....
.add(new HexAdapter())
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/MoshiFactory.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthSyncingResultAdapter.java // public class EthSyncingResultAdapter { // // @ToJson // EthSyncingResultJson toJson(@FalseToNull EthSyncingResult in) { // EthSyncingResultJson out = new EthSyncingResultJson(); // out.currentBlock = in....
import com.jaeckel.geth.json.EthSyncingResultAdapter; import com.jaeckel.geth.json.FalseToNullFactory; import com.jaeckel.geth.json.HexAdapter; import com.squareup.moshi.Moshi;
package com.jaeckel.geth; public class MoshiFactory { public static Moshi createMoshi() { return new Moshi.Builder() .add(new HexAdapter())
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthSyncingResultAdapter.java // public class EthSyncingResultAdapter { // // @ToJson // EthSyncingResultJson toJson(@FalseToNull EthSyncingResult in) { // EthSyncingResultJson out = new EthSyncingResultJson(); // out.currentBlock = in....
.add(new FalseToNullFactory())
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/MoshiFactory.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthSyncingResultAdapter.java // public class EthSyncingResultAdapter { // // @ToJson // EthSyncingResultJson toJson(@FalseToNull EthSyncingResult in) { // EthSyncingResultJson out = new EthSyncingResultJson(); // out.currentBlock = in....
import com.jaeckel.geth.json.EthSyncingResultAdapter; import com.jaeckel.geth.json.FalseToNullFactory; import com.jaeckel.geth.json.HexAdapter; import com.squareup.moshi.Moshi;
package com.jaeckel.geth; public class MoshiFactory { public static Moshi createMoshi() { return new Moshi.Builder() .add(new HexAdapter()) .add(new FalseToNullFactory())
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthSyncingResultAdapter.java // public class EthSyncingResultAdapter { // // @ToJson // EthSyncingResultJson toJson(@FalseToNull EthSyncingResult in) { // EthSyncingResultJson out = new EthSyncingResultJson(); // out.currentBlock = in....
.add(new EthSyncingResultAdapter())
biafra23/EtherWallet
geth-connector/src/test/java/com/jaeckel/geth/json/EthSyncingResponseTest.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/MoshiFactory.java // public class MoshiFactory { // // public static Moshi createMoshi() { // return new Moshi.Builder() // .add(new HexAdapter()) // .add(new FalseToNullFactory()) // .add(new EthSyncingR...
import com.jaeckel.geth.MoshiFactory; import com.squareup.moshi.JsonAdapter; import com.squareup.moshi.Moshi; import java.io.IOException; import java.io.InputStream; import org.junit.Before; import org.junit.Test; import okio.BufferedSource; import okio.Okio; import static org.hamcrest.CoreMatchers.is; import static or...
package com.jaeckel.geth.json; public class EthSyncingResponseTest { Moshi moshi; @Before public void setUp() {
// Path: geth-connector/src/main/java/com/jaeckel/geth/MoshiFactory.java // public class MoshiFactory { // // public static Moshi createMoshi() { // return new Moshi.Builder() // .add(new HexAdapter()) // .add(new FalseToNullFactory()) // .add(new EthSyncingR...
moshi = MoshiFactory.createMoshi();
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/GethConnector.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthBlockNumberResponse; import com.jaeckel.geth.json.EthGetBalanceResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import...
package com.jaeckel.geth; public class GethConnector implements EthereumJsonRpc { private static final String METHOD_NET_PEER_COUNT = "net_peerCount"; private static final String METHOD_ETH_BLOCK_NUMBER = "eth_blockNumber"; private static final String METHOD_ETH_GET_BALANCE = "eth_getBalance"; priv...
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
public void netPeerCount(Callback<NetPeerCountResponse> callback) throws IOException {
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/GethConnector.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthBlockNumberResponse; import com.jaeckel.geth.json.EthGetBalanceResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import...
package com.jaeckel.geth; public class GethConnector implements EthereumJsonRpc { private static final String METHOD_NET_PEER_COUNT = "net_peerCount"; private static final String METHOD_ETH_BLOCK_NUMBER = "eth_blockNumber"; private static final String METHOD_ETH_GET_BALANCE = "eth_getBalance"; priv...
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
public void ethSyncing(Callback<EthSyncingResponse> callback) throws IOException {
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/GethConnector.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthBlockNumberResponse; import com.jaeckel.geth.json.EthGetBalanceResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import...
// try { // personalListAccounts(new Callback<EthAccountsResponse>() { // @Override // public void onResult(EthAccountsResponse ethAccountsResponse) { // // } // // @Override // public void onError(JSONRPC2Error error) { // //...
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
public void ethBlockNumber(Callback<EthBlockNumberResponse> callback) throws IOException {
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/GethConnector.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthBlockNumberResponse; import com.jaeckel.geth.json.EthGetBalanceResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import...
// // } // }); // } catch (IOException e) { // e.printStackTrace(); // } } public void ethSyncing(Callback<EthSyncingResponse> callback) throws IOException { Response response = httpClient.newCall( new Request.Builder().url(JSON_RPC_EN...
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
public void ethAccounts(Callback<EthAccountsResponse> callback) throws IOException {
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/GethConnector.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthBlockNumberResponse; import com.jaeckel.geth.json.EthGetBalanceResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import...
.post(RequestBody.create(JSON, createRequest(METHOD_ETH_SYNCING))) .build()) .execute(); JsonAdapter<EthSyncingResponse> jsonAdapter = moshi.adapter(EthSyncingResponse.class); EthSyncingResponse ethSyncingResponse = jsonAdapter.fromJson(res...
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
public void ethGetBalance(String address, String blockParamter, Callback<EthGetBalanceResponse> callback) throws IOException {
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/GethConnector.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthBlockNumberResponse; import com.jaeckel.geth.json.EthGetBalanceResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import...
Response response = httpClient.newCall(new Request.Builder().url(JSON_RPC_ENDPOINT) .post(RequestBody.create(JSON, createRequest(METHOD_ETH_BLOCK_NUMBER))) .build()).execute(); JsonAdapter<EthBl...
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
public void personalNewAccount(String password, Callback<PersonalNewAccountResponse> callback) throws IOException {
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/GethConnector.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthBlockNumberResponse; import com.jaeckel.geth.json.EthGetBalanceResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import...
JsonAdapter<EthAccountsResponse> jsonAdapter = moshi.adapter(EthAccountsResponse.class); EthAccountsResponse ethAccountsResponse = jsonAdapter.fromJson(response.body().source()); callback.onResult(ethAccountsResponse); } public void ethGetBalance(String address, String blockParamter, ...
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
public void personalListAccounts(Callback<PersonalListAccountsResponse> callback) throws IOException {
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/GethConnector.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthBlockNumberResponse; import com.jaeckel.geth.json.EthGetBalanceResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import...
.build()).execute(); JsonAdapter<PersonalNewAccountResponse> jsonAdapter = moshi.adapter(PersonalNewAccountResponse.class); PersonalNewAccountResponse ethAccountsResponse = jsonAdapter.fromJson(response.body().source()); callback.onResult(...
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
public void personalUnlockAccount(String address, String password, int timeInSeconds, Callback<PersonalUnlockAccountResponse> callback) throws IOException {
biafra23/EtherWallet
geth-connector/src/main/java/com/jaeckel/geth/GethConnector.java
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
import com.jaeckel.geth.json.EthAccountsResponse; import com.jaeckel.geth.json.EthBlockNumberResponse; import com.jaeckel.geth.json.EthGetBalanceResponse; import com.jaeckel.geth.json.EthSyncingResponse; import com.jaeckel.geth.json.NetPeerCountResponse; import com.jaeckel.geth.json.PersonalListAccountsResponse; import...
createUnlockAccountRequest( "personal_unlockAccount", address, ...
// Path: geth-connector/src/main/java/com/jaeckel/geth/json/EthAccountsResponse.java // public class EthAccountsResponse { // // public List<String> result; // // @Override // public String toString() { // return "EthAccountsResponse{" + // // "id='" + id + '\'' + // // ...
public static String sendTransaction(String from, String to, long wei, Callback<SendTransactionresult> callback) throws IOException {
udevbe/wayland-javafx
src/main/java/com/sun/glass/ui/monocle/WaylandScreen.java
// Path: src/main/java/com/sun/glass/ui/monocle/Libpixman1.java // public static final int PIXMAN_OP_OVER = 0x03; // // Path: src/main/java/com/sun/glass/ui/monocle/Libpixman1.java // public static final int PIXMAN_OP_SRC = 0x01; // // Path: src/main/java/com/sun/glass/ui/monocle/Libpixman1.java // public static fin...
import com.sun.glass.ui.Pixels; import org.freedesktop.jaccall.JNI; import org.freedesktop.jaccall.Pointer; import org.freedesktop.wayland.client.WlBufferProxy; import org.freedesktop.wayland.client.WlCallbackProxy; import org.freedesktop.wayland.client.WlCompositorProxy; import org.freedesktop.wayland.client.WlDisplay...
} else { if (b instanceof ByteBuffer) { final ByteBuffer bb = (ByteBuffer) b; final byte[] array; if (bb.hasArray()) { array = bb.array(); } else { ...
// Path: src/main/java/com/sun/glass/ui/monocle/Libpixman1.java // public static final int PIXMAN_OP_OVER = 0x03; // // Path: src/main/java/com/sun/glass/ui/monocle/Libpixman1.java // public static final int PIXMAN_OP_SRC = 0x01; // // Path: src/main/java/com/sun/glass/ui/monocle/Libpixman1.java // public static fin...
final long src = Libpixman1.pixman_image_create_bits_no_clear(PIXMAN_a8r8g8b8,
udevbe/wayland-javafx
src/main/java/com/sun/glass/ui/monocle/WaylandScreen.java
// Path: src/main/java/com/sun/glass/ui/monocle/Libpixman1.java // public static final int PIXMAN_OP_OVER = 0x03; // // Path: src/main/java/com/sun/glass/ui/monocle/Libpixman1.java // public static final int PIXMAN_OP_SRC = 0x01; // // Path: src/main/java/com/sun/glass/ui/monocle/Libpixman1.java // public static fin...
import com.sun.glass.ui.Pixels; import org.freedesktop.jaccall.JNI; import org.freedesktop.jaccall.Pointer; import org.freedesktop.wayland.client.WlBufferProxy; import org.freedesktop.wayland.client.WlCallbackProxy; import org.freedesktop.wayland.client.WlCompositorProxy; import org.freedesktop.wayland.client.WlDisplay...
} else { array = new byte[bb.capacity()]; bb.rewind(); bb.get(array); } pixels = Pointer.nref(array).address; } else { ...
// Path: src/main/java/com/sun/glass/ui/monocle/Libpixman1.java // public static final int PIXMAN_OP_OVER = 0x03; // // Path: src/main/java/com/sun/glass/ui/monocle/Libpixman1.java // public static final int PIXMAN_OP_SRC = 0x01; // // Path: src/main/java/com/sun/glass/ui/monocle/Libpixman1.java // public static fin...
Libpixman1.pixman_image_composite(alpha == 1.0f ? PIXMAN_OP_SRC : PIXMAN_OP_OVER,
udevbe/wayland-javafx
src/main/java/com/sun/glass/ui/monocle/WaylandScreen.java
// Path: src/main/java/com/sun/glass/ui/monocle/Libpixman1.java // public static final int PIXMAN_OP_OVER = 0x03; // // Path: src/main/java/com/sun/glass/ui/monocle/Libpixman1.java // public static final int PIXMAN_OP_SRC = 0x01; // // Path: src/main/java/com/sun/glass/ui/monocle/Libpixman1.java // public static fin...
import com.sun.glass.ui.Pixels; import org.freedesktop.jaccall.JNI; import org.freedesktop.jaccall.Pointer; import org.freedesktop.wayland.client.WlBufferProxy; import org.freedesktop.wayland.client.WlCallbackProxy; import org.freedesktop.wayland.client.WlCompositorProxy; import org.freedesktop.wayland.client.WlDisplay...
} else { array = new byte[bb.capacity()]; bb.rewind(); bb.get(array); } pixels = Pointer.nref(array).address; } else { ...
// Path: src/main/java/com/sun/glass/ui/monocle/Libpixman1.java // public static final int PIXMAN_OP_OVER = 0x03; // // Path: src/main/java/com/sun/glass/ui/monocle/Libpixman1.java // public static final int PIXMAN_OP_SRC = 0x01; // // Path: src/main/java/com/sun/glass/ui/monocle/Libpixman1.java // public static fin...
Libpixman1.pixman_image_composite(alpha == 1.0f ? PIXMAN_OP_SRC : PIXMAN_OP_OVER,
Frank-Zhu/AndroidAppCodeFramework
CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/gson/GsonParse.java
// Path: CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/app/AppServerConfig.java // public class AppServerConfig { // public static final int CODE_SERVER_ERROR = -1;//服务器错误 // public static final int CODE_FAIL = 0;//验证失败 // public static final int CODE_SUCCESS = ...
import com.ecloud.androidcodeframework.codeframework.app.AppServerConfig; import com.ecloud.androidcodeframework.codeframework.entity.ErrorBaseBean; import com.google.gson.Gson;
package com.ecloud.androidcodeframework.codeframework.gson; /** * Author: ZhuWenWu * Version V1.0 * Date: 14-3-15 下午9:46 * Description: 数据解析类 * Modification History: * Date Author Version Discription * -----------------------------------------------------------------------...
// Path: CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/app/AppServerConfig.java // public class AppServerConfig { // public static final int CODE_SERVER_ERROR = -1;//服务器错误 // public static final int CODE_FAIL = 0;//验证失败 // public static final int CODE_SUCCESS = ...
ErrorBaseBean mErrorBaseBean;
Frank-Zhu/AndroidAppCodeFramework
CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/gson/GsonParse.java
// Path: CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/app/AppServerConfig.java // public class AppServerConfig { // public static final int CODE_SERVER_ERROR = -1;//服务器错误 // public static final int CODE_FAIL = 0;//验证失败 // public static final int CODE_SUCCESS = ...
import com.ecloud.androidcodeframework.codeframework.app.AppServerConfig; import com.ecloud.androidcodeframework.codeframework.entity.ErrorBaseBean; import com.google.gson.Gson;
package com.ecloud.androidcodeframework.codeframework.gson; /** * Author: ZhuWenWu * Version V1.0 * Date: 14-3-15 下午9:46 * Description: 数据解析类 * Modification History: * Date Author Version Discription * -----------------------------------------------------------------------...
// Path: CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/app/AppServerConfig.java // public class AppServerConfig { // public static final int CODE_SERVER_ERROR = -1;//服务器错误 // public static final int CODE_FAIL = 0;//验证失败 // public static final int CODE_SUCCESS = ...
if(mErrorBaseBean.getCode() == AppServerConfig.CODE_SUCCESS){
Frank-Zhu/AndroidAppCodeFramework
CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/encryption/DesEncryptionHelper.java
// Path: CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/utils/LogHelper.java // public class LogHelper { // private static final boolean DEBUG_V = true; // private static final boolean DEBUG_D = true; // private static final boolean DEBUG_I = true; // private...
import com.ecloud.androidcodeframework.codeframework.utils.LogHelper; import org.apache.http.util.EncodingUtils;
package com.ecloud.androidcodeframework.codeframework.encryption; /** * Author: ZhuWenWu * Version V1.0 * Date: 14-3-16 下午4:59 * Description: DES加解密工具类 * Modification History: * Date Author Version Discription * ------------------------------------------------------------...
// Path: CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/utils/LogHelper.java // public class LogHelper { // private static final boolean DEBUG_V = true; // private static final boolean DEBUG_D = true; // private static final boolean DEBUG_I = true; // private...
LogHelper.d(TAG, "msg = " + msg);
Frank-Zhu/AndroidAppCodeFramework
CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/thread/GetDataRequestThread.java
// Path: CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/gson/GsonParse.java // public class GsonParse extends GsonBaseParse { // // private Object bean; // // public GsonParse(String content) throws Exception { // super(content); // } // // /** // ...
import android.os.Handler; import com.ecloud.androidcodeframework.codeframework.gson.GsonParse; import org.apache.http.message.BasicNameValuePair; import org.json.JSONException; import java.util.List;
package com.ecloud.androidcodeframework.codeframework.thread; /** * Author: ZhuWenWu * Version V1.0 * Date: 14-3-16 下午7:42 * Description: * Modification History: * Date Author Version Discription * ------------------------------------------------------------------------...
// Path: CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/gson/GsonParse.java // public class GsonParse extends GsonBaseParse { // // private Object bean; // // public GsonParse(String content) throws Exception { // super(content); // } // // /** // ...
Object bean = new GsonParse(result).getBean(className);
Frank-Zhu/AndroidAppCodeFramework
CodeFramework/src/main/java/com/ecloud/collection/clothes/encryption/AesEncryptionHelper.java
// Path: CodeFramework/src/main/java/com/ecloud/collection/clothes/utils/LogHelper.java // public class LogHelper { // private static final boolean DEBUG_V = true; // private static final boolean DEBUG_D = true; // private static final boolean DEBUG_I = true; // private static final boolean DEBUG_W = tr...
import com.ecloud.collection.clothes.utils.LogHelper;
package com.ecloud.collection.clothes.encryption; /** * Author: ZhuWenWu * Version V1.0 * Date: 14-3-16 下午4:52 * Description: AES加解密工具类 * Modification History: * Date Author Version Discription * -----------------------------------------------------------------------------...
// Path: CodeFramework/src/main/java/com/ecloud/collection/clothes/utils/LogHelper.java // public class LogHelper { // private static final boolean DEBUG_V = true; // private static final boolean DEBUG_D = true; // private static final boolean DEBUG_I = true; // private static final boolean DEBUG_W = tr...
LogHelper.d(TAG, "msg = " + msg);
Frank-Zhu/AndroidAppCodeFramework
CodeFramework/src/main/java/com/ecloud/collection/clothes/encryption/DesEncryptionHelper.java
// Path: CodeFramework/src/main/java/com/ecloud/collection/clothes/utils/LogHelper.java // public class LogHelper { // private static final boolean DEBUG_V = true; // private static final boolean DEBUG_D = true; // private static final boolean DEBUG_I = true; // private static final boolean DEBUG_W = tr...
import com.ecloud.collection.clothes.utils.LogHelper; import org.apache.http.util.EncodingUtils;
package com.ecloud.collection.clothes.encryption; /** * Author: ZhuWenWu * Version V1.0 * Date: 14-3-16 下午4:59 * Description: DES加解密工具类 * Modification History: * Date Author Version Discription * ----------------------------------------------------------------------------...
// Path: CodeFramework/src/main/java/com/ecloud/collection/clothes/utils/LogHelper.java // public class LogHelper { // private static final boolean DEBUG_V = true; // private static final boolean DEBUG_D = true; // private static final boolean DEBUG_I = true; // private static final boolean DEBUG_W = tr...
LogHelper.d(TAG, "msg = " + msg);
Frank-Zhu/AndroidAppCodeFramework
CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/encryption/AesEncryptionHelper.java
// Path: CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/utils/LogHelper.java // public class LogHelper { // private static final boolean DEBUG_V = true; // private static final boolean DEBUG_D = true; // private static final boolean DEBUG_I = true; // private...
import com.ecloud.androidcodeframework.codeframework.utils.LogHelper;
package com.ecloud.androidcodeframework.codeframework.encryption; /** * Author: ZhuWenWu * Version V1.0 * Date: 14-3-16 下午4:52 * Description: AES加解密工具类 * Modification History: * Date Author Version Discription * -------------------------------------------------------------...
// Path: CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/utils/LogHelper.java // public class LogHelper { // private static final boolean DEBUG_V = true; // private static final boolean DEBUG_D = true; // private static final boolean DEBUG_I = true; // private...
LogHelper.d(TAG, "msg = " + msg);
Frank-Zhu/AndroidAppCodeFramework
CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/ui/LoginActivity.java
// Path: CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/utils/LogHelper.java // public class LogHelper { // private static final boolean DEBUG_V = true; // private static final boolean DEBUG_D = true; // private static final boolean DEBUG_I = true; // private...
import android.os.Bundle; import com.ecloud.androidcodeframework.codeframework.R; import com.ecloud.androidcodeframework.codeframework.utils.LogHelper;
package com.ecloud.androidcodeframework.codeframework.ui; public class LoginActivity extends BaseActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_login);
// Path: CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/utils/LogHelper.java // public class LogHelper { // private static final boolean DEBUG_V = true; // private static final boolean DEBUG_D = true; // private static final boolean DEBUG_I = true; // private...
LogHelper.d(TAG,"--> onCreate");
Frank-Zhu/AndroidAppCodeFramework
CodeFramework/src/main/java/com/ecloud/collection/clothes/gson/GsonParse.java
// Path: CodeFramework/src/main/java/com/ecloud/collection/clothes/app/AppServerConfig.java // public class AppServerConfig { // public static final int CODE_SERVER_ERROR = -1;//服务器错误 // public static final int CODE_FAIL = 0;//验证失败 // public static final int CODE_SUCCESS = 1;//验证成功 // // public static ...
import com.ecloud.collection.clothes.app.AppServerConfig; import com.ecloud.collection.clothes.entity.ErrorBaseBean; import com.google.gson.Gson;
package com.ecloud.collection.clothes.gson; /** * Author: ZhuWenWu * Version V1.0 * Date: 14-3-15 下午9:46 * Description: 数据解析类 * Modification History: * Date Author Version Discription * ----------------------------------------------------------------------------------- * ...
// Path: CodeFramework/src/main/java/com/ecloud/collection/clothes/app/AppServerConfig.java // public class AppServerConfig { // public static final int CODE_SERVER_ERROR = -1;//服务器错误 // public static final int CODE_FAIL = 0;//验证失败 // public static final int CODE_SUCCESS = 1;//验证成功 // // public static ...
ErrorBaseBean mErrorBaseBean;
Frank-Zhu/AndroidAppCodeFramework
CodeFramework/src/main/java/com/ecloud/collection/clothes/gson/GsonParse.java
// Path: CodeFramework/src/main/java/com/ecloud/collection/clothes/app/AppServerConfig.java // public class AppServerConfig { // public static final int CODE_SERVER_ERROR = -1;//服务器错误 // public static final int CODE_FAIL = 0;//验证失败 // public static final int CODE_SUCCESS = 1;//验证成功 // // public static ...
import com.ecloud.collection.clothes.app.AppServerConfig; import com.ecloud.collection.clothes.entity.ErrorBaseBean; import com.google.gson.Gson;
package com.ecloud.collection.clothes.gson; /** * Author: ZhuWenWu * Version V1.0 * Date: 14-3-15 下午9:46 * Description: 数据解析类 * Modification History: * Date Author Version Discription * ----------------------------------------------------------------------------------- * ...
// Path: CodeFramework/src/main/java/com/ecloud/collection/clothes/app/AppServerConfig.java // public class AppServerConfig { // public static final int CODE_SERVER_ERROR = -1;//服务器错误 // public static final int CODE_FAIL = 0;//验证失败 // public static final int CODE_SUCCESS = 1;//验证成功 // // public static ...
if(mErrorBaseBean.getCode() == AppServerConfig.CODE_SUCCESS){
Frank-Zhu/AndroidAppCodeFramework
CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/gson/GsonErrorParse.java
// Path: CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/app/AppServerConfig.java // public class AppServerConfig { // public static final int CODE_SERVER_ERROR = -1;//服务器错误 // public static final int CODE_FAIL = 0;//验证失败 // public static final int CODE_SUCCESS = ...
import com.ecloud.androidcodeframework.codeframework.app.AppServerConfig; import com.ecloud.androidcodeframework.codeframework.entity.ErrorBaseBean; import org.json.JSONException; import org.json.JSONObject;
package com.ecloud.androidcodeframework.codeframework.gson; /** * Author: ZhuWenWu * Version V1.0 * Date: 14-3-15 下午9:50 * Description: 数据请求失败Or成功解析类 * Modification History: * Date Author Version Discription * --------------------------------------------------------------...
// Path: CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/app/AppServerConfig.java // public class AppServerConfig { // public static final int CODE_SERVER_ERROR = -1;//服务器错误 // public static final int CODE_FAIL = 0;//验证失败 // public static final int CODE_SUCCESS = ...
mErrorBaseBean.setCode(AppServerConfig.CODE_SERVER_ERROR);
Frank-Zhu/AndroidAppCodeFramework
CodeFramework/src/main/java/com/ecloud/collection/clothes/gson/GsonErrorParse.java
// Path: CodeFramework/src/main/java/com/ecloud/collection/clothes/app/AppServerConfig.java // public class AppServerConfig { // public static final int CODE_SERVER_ERROR = -1;//服务器错误 // public static final int CODE_FAIL = 0;//验证失败 // public static final int CODE_SUCCESS = 1;//验证成功 // // public static ...
import com.ecloud.collection.clothes.app.AppServerConfig; import com.ecloud.collection.clothes.entity.ErrorBaseBean; import org.json.JSONException; import org.json.JSONObject;
package com.ecloud.collection.clothes.gson; /** * Author: ZhuWenWu * Version V1.0 * Date: 14-3-15 下午9:50 * Description: 数据请求失败Or成功解析类 * Modification History: * Date Author Version Discription * ------------------------------------------------------------------------------...
// Path: CodeFramework/src/main/java/com/ecloud/collection/clothes/app/AppServerConfig.java // public class AppServerConfig { // public static final int CODE_SERVER_ERROR = -1;//服务器错误 // public static final int CODE_FAIL = 0;//验证失败 // public static final int CODE_SUCCESS = 1;//验证成功 // // public static ...
mErrorBaseBean.setCode(AppServerConfig.CODE_SERVER_ERROR);
uli-heller/uli-gradle
110-springboot/src/main/java/org/uli/web/SampleController.java
// Path: 110-springboot/src/main/java/org/uli/service/HelloWorldService.java // @Component // public class HelloWorldService { // // @Value("${name:World}") // private String name; // // public String getHelloMessage() { // return "Hello " + this.name; // } // // }
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.uli.service.HelloWorldService;
/* * Copyright 2012-2013 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
// Path: 110-springboot/src/main/java/org/uli/service/HelloWorldService.java // @Component // public class HelloWorldService { // // @Value("${name:World}") // private String name; // // public String getHelloMessage() { // return "Hello " + this.name; // } // // } // Path: 110-springboot/src/main/java/org/u...
private HelloWorldService helloWorldService;
lukeweber/webrtc-jingle-client
android/voice-client-core/src/main/java/com/tuenti/voice/core/data/Buddy.java
// Path: android/voice-client-core/src/main/java/com/tuenti/voice/core/XmppPresenceAvailable.java // public enum XmppPresenceAvailable // { // XMPP_PRESENCE_UNAVAILABLE, // XMPP_PRESENCE_AVAILABLE, // XMPP_PRESENCE_ERROR; // // // ------------------------------ FIELDS ------------------------------ // // ...
import android.os.Parcel; import android.os.Parcelable; import android.text.TextUtils; import com.tuenti.voice.core.XmppPresenceAvailable; import com.tuenti.voice.core.XmppPresenceShow;
package com.tuenti.voice.core.data; public class Buddy implements Parcelable { // ------------------------------ FIELDS ------------------------------ public static final Creator<Buddy> CREATOR = new Creator<Buddy>() { public Buddy createFromParcel( Parcel in ) { return new Bu...
// Path: android/voice-client-core/src/main/java/com/tuenti/voice/core/XmppPresenceAvailable.java // public enum XmppPresenceAvailable // { // XMPP_PRESENCE_UNAVAILABLE, // XMPP_PRESENCE_AVAILABLE, // XMPP_PRESENCE_ERROR; // // // ------------------------------ FIELDS ------------------------------ // // ...
private XmppPresenceAvailable available;
lukeweber/webrtc-jingle-client
android/voice-client-core/src/main/java/com/tuenti/voice/core/data/Buddy.java
// Path: android/voice-client-core/src/main/java/com/tuenti/voice/core/XmppPresenceAvailable.java // public enum XmppPresenceAvailable // { // XMPP_PRESENCE_UNAVAILABLE, // XMPP_PRESENCE_AVAILABLE, // XMPP_PRESENCE_ERROR; // // // ------------------------------ FIELDS ------------------------------ // // ...
import android.os.Parcel; import android.os.Parcelable; import android.text.TextUtils; import com.tuenti.voice.core.XmppPresenceAvailable; import com.tuenti.voice.core.XmppPresenceShow;
package com.tuenti.voice.core.data; public class Buddy implements Parcelable { // ------------------------------ FIELDS ------------------------------ public static final Creator<Buddy> CREATOR = new Creator<Buddy>() { public Buddy createFromParcel( Parcel in ) { return new Bu...
// Path: android/voice-client-core/src/main/java/com/tuenti/voice/core/XmppPresenceAvailable.java // public enum XmppPresenceAvailable // { // XMPP_PRESENCE_UNAVAILABLE, // XMPP_PRESENCE_AVAILABLE, // XMPP_PRESENCE_ERROR; // // // ------------------------------ FIELDS ------------------------------ // // ...
private XmppPresenceShow show;
lukeweber/webrtc-jingle-client
android/voice-client-example/src/main/java/com/tuenti/voice/example/service/AccountAuthenticator.java
// Path: android/voice-client-example/src/main/java/com/tuenti/voice/example/ui/connection/AddConnectionActivity.java // public class AddConnectionActivity // extends SherlockActivity // { // // ------------------------------ FIELDS ------------------------------ // // private EditText mPasswordText; // // ...
import android.accounts.AbstractAccountAuthenticator; import android.accounts.Account; import android.accounts.AccountAuthenticatorResponse; import android.accounts.AccountManager; import android.accounts.NetworkErrorException; import android.content.Context; import android.content.Intent; import android.os.Bundle; imp...
package com.tuenti.voice.example.service; class AccountAuthenticator extends AbstractAccountAuthenticator { // ------------------------------ FIELDS ------------------------------ private static final String TAG = "AccountAuthenticator"; private Context mContext; // --------------------------- CONSTRU...
// Path: android/voice-client-example/src/main/java/com/tuenti/voice/example/ui/connection/AddConnectionActivity.java // public class AddConnectionActivity // extends SherlockActivity // { // // ------------------------------ FIELDS ------------------------------ // // private EditText mPasswordText; // // ...
final Intent intent = new Intent( mContext, AddConnectionActivity.class );
lukeweber/webrtc-jingle-client
android/voice-client-aidl/src/main/java/com/tuenti/voice/core/BuddyCallback.java
// Path: android/voice-client-core/src/main/java/com/tuenti/voice/core/data/Buddy.java // public class Buddy // implements Parcelable // { // // ------------------------------ FIELDS ------------------------------ // // public static final Creator<Buddy> CREATOR = new Creator<Buddy>() // { // publi...
import android.app.Activity; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.os.IBinder; import android.os.RemoteException; import android.util.Log; import com.tuenti.voice.core.data.Buddy; import com.tuenti.vo...
} } @Override public void onServiceDisconnected( ComponentName name ) { try { mService.unregisterCallback( BuddyCallback.this ); mService = null; } catch ( RemoteException e ) { ...
// Path: android/voice-client-core/src/main/java/com/tuenti/voice/core/data/Buddy.java // public class Buddy // implements Parcelable // { // // ------------------------------ FIELDS ------------------------------ // // public static final Creator<Buddy> CREATOR = new Creator<Buddy>() // { // publi...
public void handleBuddyUpdated( Buddy[] buddies )
lukeweber/webrtc-jingle-client
android/voice-client-aidl/src/main/java/com/tuenti/voice/core/manager/BuddyManagerImpl.java
// Path: android/voice-client-core/src/main/java/com/tuenti/voice/core/BuddyListState.java // public enum BuddyListState // { // ADD, // REMOVE, // RESET; // // // ------------------------------ FIELDS ------------------------------ // // private static final BuddyListState[] buddyListStateValues = Bu...
import android.os.IBinder; import android.os.RemoteCallbackList; import android.os.RemoteException; import android.util.Log; import com.tuenti.voice.core.BuddyListState; import com.tuenti.voice.core.VoiceClient; import com.tuenti.voice.core.XmppPresenceAvailable; import com.tuenti.voice.core.XmppPresenceShow; import co...
package com.tuenti.voice.core.manager; public class BuddyManagerImpl implements BuddyManager { // ------------------------------ FIELDS ------------------------------ private static final Object mLock = new Object(); private static final String TAG = "BuddyManager";
// Path: android/voice-client-core/src/main/java/com/tuenti/voice/core/BuddyListState.java // public enum BuddyListState // { // ADD, // REMOVE, // RESET; // // // ------------------------------ FIELDS ------------------------------ // // private static final BuddyListState[] buddyListStateValues = Bu...
private BuddyComparator comparator = new BuddyComparator();
lukeweber/webrtc-jingle-client
android/voice-client-example/src/main/java/com/tuenti/voice/example/ui/buddy/BuddyListAdapter.java
// Path: android/voice-client-core/src/main/java/com/tuenti/voice/core/XmppPresenceAvailable.java // public enum XmppPresenceAvailable // { // XMPP_PRESENCE_UNAVAILABLE, // XMPP_PRESENCE_AVAILABLE, // XMPP_PRESENCE_ERROR; // // // ------------------------------ FIELDS ------------------------------ // // ...
import android.view.LayoutInflater; import com.github.kevinsawicki.wishlist.SingleTypeAdapter; import com.tuenti.voice.core.XmppPresenceAvailable; import com.tuenti.voice.core.XmppPresenceShow; import com.tuenti.voice.core.data.Buddy; import com.tuenti.voice.example.R;
package com.tuenti.voice.example.ui.buddy; public class BuddyListAdapter extends SingleTypeAdapter<Buddy> { // --------------------------- CONSTRUCTORS --------------------------- public BuddyListAdapter( final LayoutInflater inflater, final Buddy[] buddies ) { super( inflater, R.layout.buddy_ite...
// Path: android/voice-client-core/src/main/java/com/tuenti/voice/core/XmppPresenceAvailable.java // public enum XmppPresenceAvailable // { // XMPP_PRESENCE_UNAVAILABLE, // XMPP_PRESENCE_AVAILABLE, // XMPP_PRESENCE_ERROR; // // // ------------------------------ FIELDS ------------------------------ // // ...
if ( XmppPresenceAvailable.XMPP_PRESENCE_AVAILABLE.equals( buddy.getAvailable() ) )
lukeweber/webrtc-jingle-client
android/voice-client-example/src/main/java/com/tuenti/voice/example/ui/buddy/BuddyListAdapter.java
// Path: android/voice-client-core/src/main/java/com/tuenti/voice/core/XmppPresenceAvailable.java // public enum XmppPresenceAvailable // { // XMPP_PRESENCE_UNAVAILABLE, // XMPP_PRESENCE_AVAILABLE, // XMPP_PRESENCE_ERROR; // // // ------------------------------ FIELDS ------------------------------ // // ...
import android.view.LayoutInflater; import com.github.kevinsawicki.wishlist.SingleTypeAdapter; import com.tuenti.voice.core.XmppPresenceAvailable; import com.tuenti.voice.core.XmppPresenceShow; import com.tuenti.voice.core.data.Buddy; import com.tuenti.voice.example.R;
package com.tuenti.voice.example.ui.buddy; public class BuddyListAdapter extends SingleTypeAdapter<Buddy> { // --------------------------- CONSTRUCTORS --------------------------- public BuddyListAdapter( final LayoutInflater inflater, final Buddy[] buddies ) { super( inflater, R.layout.buddy_ite...
// Path: android/voice-client-core/src/main/java/com/tuenti/voice/core/XmppPresenceAvailable.java // public enum XmppPresenceAvailable // { // XMPP_PRESENCE_UNAVAILABLE, // XMPP_PRESENCE_AVAILABLE, // XMPP_PRESENCE_ERROR; // // // ------------------------------ FIELDS ------------------------------ // // ...
if ( XmppPresenceShow.XMPP_PRESENCE_DND.equals( buddy.getShow() ) )
lukeweber/webrtc-jingle-client
android/voice-client-core/src/main/java/com/tuenti/voice/core/OnBuddyListener.java
// Path: android/voice-client-core/src/main/java/com/tuenti/voice/core/data/Buddy.java // public class Buddy // implements Parcelable // { // // ------------------------------ FIELDS ------------------------------ // // public static final Creator<Buddy> CREATOR = new Creator<Buddy>() // { // publi...
import com.tuenti.voice.core.data.Buddy;
package com.tuenti.voice.core; public interface OnBuddyListener { // -------------------------- OTHER METHODS --------------------------
// Path: android/voice-client-core/src/main/java/com/tuenti/voice/core/data/Buddy.java // public class Buddy // implements Parcelable // { // // ------------------------------ FIELDS ------------------------------ // // public static final Creator<Buddy> CREATOR = new Creator<Buddy>() // { // publi...
void onBuddyUpdated( Buddy[] buddies );
lukeweber/webrtc-jingle-client
android/voice-client-core/src/main/java/com/tuenti/voice/core/OnCallListener.java
// Path: android/voice-client-core/src/main/java/com/tuenti/voice/core/data/Call.java // public class Call // implements Parcelable // { // // ------------------------------ FIELDS ------------------------------ // // public static final Creator<Call> CREATOR = new Creator<Call>() // { // public Ca...
import com.tuenti.voice.core.data.Call;
package com.tuenti.voice.core; public interface OnCallListener { // -------------------------- OTHER METHODS -------------------------- void acceptCall( long callId ); void call( String remoteJid ); void declineCall( long callId, boolean busy ); void endCall( long callId ); void onCallInProgr...
// Path: android/voice-client-core/src/main/java/com/tuenti/voice/core/data/Call.java // public class Call // implements Parcelable // { // // ------------------------------ FIELDS ------------------------------ // // public static final Creator<Call> CREATOR = new Creator<Call>() // { // public Ca...
void onIncomingCall( Call call );
teocci/YouTube-In-Background
app/src/main/java/com/teocci/ytinbg/JsonAsyncTask.java
// Path: app/src/main/java/com/teocci/ytinbg/interfaces/JsonAsyncResponse.java // public interface JsonAsyncResponse // { // void processFinish(ArrayList<String> result); // } // // Path: app/src/main/java/com/teocci/ytinbg/utils/LogHelper.java // public class LogHelper // { // private static final int LOG_PRE...
import android.os.AsyncTask; import com.teocci.ytinbg.interfaces.JsonAsyncResponse; import com.teocci.ytinbg.utils.LogHelper; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import org.json.JSONTokener; import java.io.BufferedReader; import java.io.IOException; import java.io.Input...
package com.teocci.ytinbg; /** * AsyncTask for acquiring search suggestion in action bar * Created by Teocci on 19.2.16.. */ public class JsonAsyncTask extends AsyncTask<String, Void, ArrayList<String>> {
// Path: app/src/main/java/com/teocci/ytinbg/interfaces/JsonAsyncResponse.java // public interface JsonAsyncResponse // { // void processFinish(ArrayList<String> result); // } // // Path: app/src/main/java/com/teocci/ytinbg/utils/LogHelper.java // public class LogHelper // { // private static final int LOG_PRE...
private static final String TAG = LogHelper.makeLogTag(JsonAsyncTask.class);
teocci/YouTube-In-Background
app/src/main/java/com/teocci/ytinbg/JsonAsyncTask.java
// Path: app/src/main/java/com/teocci/ytinbg/interfaces/JsonAsyncResponse.java // public interface JsonAsyncResponse // { // void processFinish(ArrayList<String> result); // } // // Path: app/src/main/java/com/teocci/ytinbg/utils/LogHelper.java // public class LogHelper // { // private static final int LOG_PRE...
import android.os.AsyncTask; import com.teocci.ytinbg.interfaces.JsonAsyncResponse; import com.teocci.ytinbg.utils.LogHelper; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import org.json.JSONTokener; import java.io.BufferedReader; import java.io.IOException; import java.io.Input...
package com.teocci.ytinbg; /** * AsyncTask for acquiring search suggestion in action bar * Created by Teocci on 19.2.16.. */ public class JsonAsyncTask extends AsyncTask<String, Void, ArrayList<String>> { private static final String TAG = LogHelper.makeLogTag(JsonAsyncTask.class); private final int JSO...
// Path: app/src/main/java/com/teocci/ytinbg/interfaces/JsonAsyncResponse.java // public interface JsonAsyncResponse // { // void processFinish(ArrayList<String> result); // } // // Path: app/src/main/java/com/teocci/ytinbg/utils/LogHelper.java // public class LogHelper // { // private static final int LOG_PRE...
private JsonAsyncResponse delegate = null;
teocci/YouTube-In-Background
app/src/main/java/com/teocci/ytinbg/receivers/DownloadFinishedReceiver.java
// Path: app/src/main/java/com/teocci/ytinbg/utils/LogHelper.java // public class LogHelper // { // private static final int LOG_PREFIX_LENGTH = LOG_PREFIX.length(); // private static final int MAX_LOG_TAG_LENGTH = 23; // private static final int RESERVED_LENGTH = MAX_LOG_TAG_LENGTH - LOG_PREFIX_LENGTH - 2;...
import android.app.DownloadManager; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.widget.Toast; import com.coremedia.iso.boxes.Box; import com.coremedia.iso.boxes.C...
package com.teocci.ytinbg.receivers; public class DownloadFinishedReceiver extends BroadcastReceiver {
// Path: app/src/main/java/com/teocci/ytinbg/utils/LogHelper.java // public class LogHelper // { // private static final int LOG_PREFIX_LENGTH = LOG_PREFIX.length(); // private static final int MAX_LOG_TAG_LENGTH = 23; // private static final int RESERVED_LENGTH = MAX_LOG_TAG_LENGTH - LOG_PREFIX_LENGTH - 2;...
private static final String TAG = LogHelper.makeLogTag(DownloadFinishedReceiver.class);
teocci/YouTube-In-Background
app/src/main/java/com/teocci/ytinbg/model/YouTubeFragmentedVideo.java
// Path: youtubeExtractor/src/main/java/at/huber/youtubeExtractor/YtFile.java // public class YtFile { // // private Format format; // private String url = ""; // // YtFile(Format format, String url) { // this.format = format; // this.url = url; // } // // /** // * The url to...
import at.huber.youtubeExtractor.YtFile;
package com.teocci.ytinbg.model; /** * Created by teocci. * * @author teocci@yandex.com on 2017-May-18 */ public class YouTubeFragmentedVideo { public int height;
// Path: youtubeExtractor/src/main/java/at/huber/youtubeExtractor/YtFile.java // public class YtFile { // // private Format format; // private String url = ""; // // YtFile(Format format, String url) { // this.format = format; // this.url = url; // } // // /** // * The url to...
public YtFile audioFile;