All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.oliviercailloux.javagrade.graders.GraderVarious Maven / Gradle / Ivy

The newest version!
package io.github.oliviercailloux.javagrade.graders;

import io.github.oliviercailloux.jaris.exceptions.TryCatchAll;
import io.github.oliviercailloux.jaris.throwing.TConsumer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class GraderVarious {
  @SuppressWarnings("unused")
  private static final Logger LOGGER = LoggerFactory.getLogger(GraderVarious.class);

  public void gradeCode() {
    final TryCatchAll tryTarget = TryCatchAll.get(() -> 3);
    TConsumer consumer = Integer::byteValue;
    final TryCatchAll got = tryTarget.andConsume(consumer);
    LOGGER.info("Got: {}.", got);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy