Usage of class Pair<A,B>
Hi,
I am trying to create a java module programmatically using
ModuleBuilder.createModule().
I want to set the source path for the project of this module, so I am using
JavaModuleBuilder.setSourcePaths(java.util.List<Pair<java.lang.String,java.lang.String>>
sourcePaths);
I would like to know the significance of the parameters passed to the class
Pair.viz First and Second. What are these parameters supposed to be and what
do they do?
Any help in this regard is appreciated.
Regards,
Priya
Please sign in to leave a comment.
Hello Priya,
The first element of the pair is the path to the source root, and the second
one is the package prefix of the source root.
--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"
P> Hi,
P>
P> I am trying to create a java module programmatically using
P> ModuleBuilder.createModule().
P>
P> I want to set the source path for the project of this module, so I am
P> using
P>
P> JavaModuleBuilder.setSourcePaths(java.util.List<Pair<java.lang.String
P> ,java.lang.String>> sourcePaths);
P>
P> I would like to know the significance of the parameters passed to the
P> class Pair.viz First and Second. What are these parameters supposed
P> to be and what do they do?
P>
P> Any help in this regard is appreciated.
P>
P> Regards,
P> Priya