PORT / com.packvium:packvium
Java port
The reference engine ported to Java with no runtime dependencies, and byte-identical to the reference on the 1.3.0 conformance corpus.
INSTALL
implementation("com.packvium:packvium:1.3.0")FIRST CALL
// implementation("com.packvium:packvium:1.3.0")
import com.packvium.Packer;
import com.packvium.config.PackingConfig;
import com.packvium.domain.Container;
import com.packvium.domain.Dimensions;
import com.packvium.domain.Item;
import com.packvium.result.PackingResult;
import java.util.List;
PackingResult result = new Packer(PackingConfig.balanced()).pack(
List.of(Item.builder("book", Dimensions.mm("210", "140", "30")).quantity(4).build()),
List.of(Container.builder("box", Dimensions.mm("400", "300", "250")).build()));
System.out.println(result.status().wireName()); // feasible- Version
- 1.3.0
- Requires
- Java >= 17
- License
- MIT
- Role
- Port
- Registry
- Maven Central
- Availability
- published
EVIDENCE
Held to the same fixtures as every other engine.
Released on its own line, not with the suite: 1.3.0 implements the 1.3.0 contract, so request fields added in 1.4 and later (a pallet overhang limit, for one) are not in it yet and are refused with unsupported_feature. The install line is the Gradle form; Maven takes the same coordinates.