Skip to content
Permalink
Browse files

created modules

  • Loading branch information...
elucash committed Aug 23, 2019
1 parent 3734610 commit ed3b0fdc43d90891cc62463913be1aad8982e3f0

This file was deleted.

@@ -0,0 +1,9 @@
load('//mod:rules.bzl', 'java_module')

java_module(
name = 'endec',
provided_deps = [
'//lib/javax/annotation:annotation',
],
maven_coords = 'io.immutables:endec:0.0.1',
)
@@ -0,0 +1,39 @@
package io.immutables.endec;

import java.lang.annotation.Target;
import java.util.function.Function;
import javax.annotation.Nullable;
import javax.annotation.meta.TypeQualifier;
import static java.lang.annotation.ElementType.TYPE_USE;

@Target(TYPE_USE)
@TypeQualifier(applicableTo = int.class)
@interface Offset {}

abstract class Out {}

abstract class In {
public abstract @Offset int offset();
public abstract void reset(@Offset int offset);
}

interface Type {}

interface Factory {
@Nullable
<T> Endec<T> get(Type type);
}

class Registry {
void add(Factory factory) {}
void add(Function<Registry, Factory> factory) {}
Factory toFactory() {
return null;
}
}

interface Endec<T> {
T decode(In in);

void encode(Out out, T instance);
}
@@ -0,0 +1,10 @@
package io.immutables.endec;

import org.junit.Test;

public class TestEndec {
@Test
public void t1() {

}
}
@@ -0,0 +1,9 @@
load('//mod:rules.bzl', 'java_module')

java_module(
name = 'log',
provided_deps = [
'//lib/javax/annotation:annotation',
],
maven_coords = 'io.immutables:log:0.0.1',
)
@@ -0,0 +1,3 @@
package io.immutables.log;

interface Log {}
@@ -0,0 +1,10 @@
package io.immutables.log;

import org.junit.Test;

public class TestLog {
@Test
public void t1() {

}
}

0 comments on commit ed3b0fd

Please sign in to comment.
You can’t perform that action at this time.