< prev index next >

modules/jmx/src/main/java/com/oracle/javafx/jmx/json/ImmutableJSONDocument.java

Print this page




  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.oracle.javafx.jmx.json;
  27 
  28 import java.util.Collections;
  29 import java.util.List;
  30 import java.util.Map;
  31 
  32 /**
  33  * @treatAsPrivate
  34  */
  35 final class ImmutableJSONDocument extends JSONDocument {
  36 
  37     public ImmutableJSONDocument(Type type) {
  38         super(type);
  39     }
  40 
  41     @Override
  42     public List<Object> array() {
  43         return Collections.emptyList();
  44     }
  45 
  46     @Override
  47     public Map<String, Object> object() {
  48         return Collections.emptyMap();
  49     }
  50 
  51 }


  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.oracle.javafx.jmx.json;
  27 
  28 import java.util.Collections;
  29 import java.util.List;
  30 import java.util.Map;
  31 



  32 final class ImmutableJSONDocument extends JSONDocument {
  33 
  34     public ImmutableJSONDocument(Type type) {
  35         super(type);
  36     }
  37 
  38     @Override
  39     public List<Object> array() {
  40         return Collections.emptyList();
  41     }
  42 
  43     @Override
  44     public Map<String, Object> object() {
  45         return Collections.emptyMap();
  46     }
  47 
  48 }
< prev index next >