[Bprocessor-commit] /model/src/net/sourceforge/bprocessor/model Mesh.java, 1.20, 1.21
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2007-09-27 10:43:00
|
Update of /cvsroot/bprocessor//model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11867/src/net/sourceforge/bprocessor/model Modified Files: Mesh.java Log Message: Gave the constructor a less conservative generic type constraint on the input list Index: Mesh.java =================================================================== RCS file: /cvsroot/bprocessor//model/src/net/sourceforge/bprocessor/model/Mesh.java,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** Mesh.java 8 Jun 2007 10:51:34 -0000 1.20 --- Mesh.java 27 Sep 2007 10:43:02 -0000 1.21 *************** *** 47,54 **** * @param geometrics Collection of Geometric objects */ ! public Mesh(Collection<Geometric> geometrics) { ! Collection<Vertex> vertices = new HashSet(); ! Collection<Edge> edges = new HashSet(); ! Collection<Surface> surfaces = new HashSet(); for (Geometric current : geometrics) { if (current instanceof Surface) { --- 47,54 ---- * @param geometrics Collection of Geometric objects */ ! public Mesh(Collection<? extends Geometric> geometrics) { ! Collection<Vertex> vertices = new HashSet<Vertex>(); ! Collection<Edge> edges = new HashSet<Edge>(); ! Collection<Surface> surfaces = new HashSet<Surface>(); for (Geometric current : geometrics) { if (current instanceof Surface) { |