Created
January 13, 2010 18:31
-
-
Save jfinkels/276433 to your computer and use it in GitHub Desktop.
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
Factory<Byte> bitFactory = new BitFactory(); | |
int length = 20; | |
Factory<DeepCopyableList<Byte>> individualFactory = new PartialDeepCopyableListFactory<Byte>(); | |
individualFactory.setElementFactory(bitFactory); | |
individualFactory.setSize(length); | |
try { | |
DeepCopyableList<Byte> individual = individualFactory.createObject(); | |
} catch (InitializationException exception) { | |
// handle the exception | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment