Skip to content

make CloneableInput<T> extend T so that... #4

@RuinedSubmartingale

Description

@RuinedSubmartingale

so that we can pass in the CloneableObject directly to an algorithm that expects Object type parameter. Abstracts out a layer of indirection from individual algorithms' code into the code for the Cloneable entity.

Making CloneableInteger, CloneableString, and the like to act like Integer, String, etc. shouldn't be that hard...but we need to think carefully about what it means to make more complicated classes like CloneableArrayList or CloneableMyLinkedList masquerade as their dataTypes so that we can pass them directly to the algorithm.

This will also require changing CloneableInputsMap quite a bit I imagine.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions