Categories:
Audio (13)
Biotech (29)
Bytecode (35)
Database (77)
Framework (7)
Game (7)
General (512)
Graphics (53)
I/O (32)
IDE (2)
JAR Tools (86)
JavaBeans (16)
JDBC (89)
JDK (337)
JSP (20)
Logging (103)
Mail (54)
Messaging (8)
Network (71)
PDF (94)
Report (7)
Scripting (83)
Security (32)
Server (119)
Servlet (17)
SOAP (24)
Testing (50)
Web (19)
XML (301)
Other Resources:
Jackson Annotations Source Code
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java".
Jackson Annotations Source Code files are provided in the source packge (jackson-annotations-2.12.4-sources.jar). You can download it at Jackson Maven Website.
You can also browse Jackson Annotations Source Code below:
✍: FYIcenter.com
⏎ com/fasterxml/jackson/databind/util/ViewMatcher.java
package com.fasterxml.jackson.databind.util; /** * Helper class used for checking whether a property is visible * in the active view */ public class ViewMatcher implements java.io.Serializable { private static final long serialVersionUID = 1L; protected final static ViewMatcher EMPTY = new ViewMatcher(); public boolean isVisibleForView(Class<?> activeView) { return false; } public static ViewMatcher construct(Class<?>[] views) { if (views == null) { return EMPTY; } switch (views.length) { case 0: return EMPTY; case 1: return new Single(views[0]); } return new Multi(views); } /* /********************************************************** /* Concrete sub-classes /********************************************************** */ private final static class Single extends ViewMatcher { private static final long serialVersionUID = 1L; private final Class<?> _view; public Single(Class<?> v) { _view = v; } @Override public boolean isVisibleForView(Class<?> activeView) { return (activeView == _view) || _view.isAssignableFrom(activeView); } } private final static class Multi extends ViewMatcher implements java.io.Serializable { private static final long serialVersionUID = 1L; private final Class<?>[] _views; public Multi(Class<?>[] v) { _views = v; } @Override public boolean isVisibleForView(Class<?> activeView) { for (int i = 0, len = _views.length; i < len; ++i) { Class<?> view = _views[i]; if ((activeView == view) || view.isAssignableFrom(activeView)) { return true; } } return false; } } }
⏎ com/fasterxml/jackson/databind/util/ViewMatcher.java
Â
⇒ Jackson Dataformat Extensions
⇠Jackson Data Binding Source Code
⇑ Downloading and Reviewing jackson-*.jar
⇑⇑ Jackson - Java JSON library
2022-02-19, 36584👍, 0💬
Popular Posts:
Commons Pool provides an Object-pooling API, with three major aspects: 1. A generic object pool inte...
Where to find answers to frequently asked questions on Downloading and Using JDK (Java Development K...
What Is ojdbc8.jar for Oracle 12c R2? ojdbc8.jar for Oracle 12c R2 is the JAR files of ojdbc.jar, JD...
What Is jaxb-api-2.1.6.jar? Java Architecture for XML Binding (JAXB) is a Java API that allows Java ...
Apache BCEL Source Code Files are inside the Apache Ant source package file like bcel-6.5.0-src.zip....