[jbosscache-commits] JBoss Cache SVN: r6311 - core/trunk/src/main/java/org/jboss/cache.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Thu Jul 17 06:47:11 EDT 2008
Author: manik.surtani at jboss.com
Date: 2008-07-17 06:47:11 -0400 (Thu, 17 Jul 2008)
New Revision: 6311
Modified:
core/trunk/src/main/java/org/jboss/cache/Fqn.java
Log:
Added a new factory method for Fqn
Modified: core/trunk/src/main/java/org/jboss/cache/Fqn.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/Fqn.java 2008-07-16 17:30:08 UTC (rev 6310)
+++ core/trunk/src/main/java/org/jboss/cache/Fqn.java 2008-07-17 10:47:11 UTC (rev 6311)
@@ -152,6 +152,22 @@
}
/**
+ * Retrieves an Fqn that represents the list of elements passed in.
+ *
+ * @param names list of elements that comprise the Fqn
+ * @param safe if true, the list passed in is not defensively copied but used directly. <b>Use with care.</b> Make sure
+ * you know what you are doing before you pass in a <tt>true</tt> value to <tt>safe</tt>, as it can have adverse effects on
+ * performance or correctness. The defensive copy of list elements is not just for safety but also for performance as
+ * an appropriare List implementation is used, which works well with Fqn operations.
+ * @return an Fqn
+ * @since 3.0.0
+ */
+ public static Fqn fromList(List<Object> names, boolean safe)
+ {
+ return new Fqn(names, safe);
+ }
+
+ /**
* Retrieves an Fqn that represents the array of elements passed in.
*
* @param elements array of elements that comprise the Fqn
More information about the jbosscache-commits
mailing list