This file contains hidden or 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
package com.kaput.littlehelper; | |
import java.util.Enumeration; | |
import java.util.Iterator; | |
import java.util.NoSuchElementException; | |
import java.util.Objects; | |
/** | |
* Helper class to be able to use a{@link Iterator} (i.e. {@link java.util.stream.Stream}) with {@link Enumeration}. | |
* This can be useful, i.e.: |
This file contains hidden or 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
/** | |
* Generic method that properly awaits a given condition to become true within a given timeout. | |
* This is superior to {@code sleep()} methods because it returns early when the condition is met. | |
* | |
* @param boolSupplier the supplier for evaluating the condition, should return {@code true} if condition is met, {@code false} otherwise | |
* @param timeout timeout number | |
* @param timeUnit timeout unit | |
* @return {@code true} if condition is met within given time, {@code false} otherwise | |
*/ | |
private boolean waitForCondition(final BooleanSupplier boolSupplier, long timeout, final TimeUnit timeUnit) { |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.example</groupId> | |
<artifactId>SpringKafkaDependencyIssue</artifactId> | |
<version>1.0-SNAPSHOT</version> |
This file contains hidden or 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
package com.kaput.portal.templaterenderer; | |
import io.quarkus.qute.TemplateEnum; | |
import io.quarkus.qute.TemplateExtension; | |
@TemplateExtension | |
public class RatingStarsTemplateRenderer { | |
@TemplateEnum | |
public enum StarStyleEnum { |
OlderNewer