Commit fb114c81 authored by Rob Tomsick's avatar Rob Tomsick

Add convenience constructor for partial NDCs

parent 5119dfa9
......@@ -83,6 +83,20 @@ public final class NDC
private final int[] productCode;
private final int[] packageCode;
/**
* Construct a new partial NDC consisting of the given labeler and product
* codes. The lengths of the given codes will be checked to ensure that
* the given NDC conforms to one of the standard formats (excl. package
* code).
*
* @param labelerCode labeler code, 4 or 5 digits
* @param productCode product code, 3 or 4 digits
*/
public NDC(int[] labelerCode, int[] productCode)
{
this(labelerCode, productCode, null);
}
/**
* Construct a new NDC consisting of the given labeler, product, and
* (optionally) package codes. The lengths of the given codes will be
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment