-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
316 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package sdmxdl; | ||
|
||
import lombok.NonNull; | ||
|
||
import java.io.IOException; | ||
import java.util.function.BiConsumer; | ||
|
||
@FunctionalInterface | ||
public interface ErrorListener<S extends SdmxSource> { | ||
|
||
void accept(@NonNull S source, @NonNull Marker marker, @NonNull CharSequence message, @NonNull IOException error); | ||
|
||
default @NonNull BiConsumer<CharSequence, IOException> asBiConsumer(@NonNull S source, @NonNull Marker marker) { | ||
return (message, error) -> accept(source, marker, message, error); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package sdmxdl; | ||
|
||
import lombok.NonNull; | ||
|
||
import java.util.function.Consumer; | ||
|
||
@FunctionalInterface | ||
public interface EventListener<S extends SdmxSource> { | ||
|
||
void accept(@NonNull S source, @NonNull Marker marker, @NonNull CharSequence message); | ||
|
||
default @NonNull Consumer<CharSequence> asConsumer(@NonNull S source, @NonNull Marker marker) { | ||
return message -> accept(source, marker, message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package sdmxdl; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.NonNull; | ||
import nbbrd.design.RepresentableAsString; | ||
import nbbrd.design.StaticFactoryMethod; | ||
|
||
@RepresentableAsString | ||
@lombok.AllArgsConstructor(access = AccessLevel.PRIVATE) | ||
@lombok.EqualsAndHashCode | ||
public class Marker implements CharSequence { | ||
|
||
@lombok.experimental.Delegate(types = CharSequence.class) | ||
private final @NonNull String value; | ||
|
||
@Override | ||
public String toString() { | ||
return value; | ||
} | ||
|
||
@StaticFactoryMethod | ||
public static @NonNull Marker parse(@NonNull CharSequence value) { | ||
return new Marker(value.toString()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
sdmx-dl-api/src/main/java/sdmxdl/ext/SdmxSourceBiConsumer.java
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
sdmx-dl-api/src/main/java/sdmxdl/ext/SdmxSourceConsumer.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.