Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for switches (0.43 sec)

  1. maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderTest.java

            @Override
            public ModelSource resolveModel(org.apache.maven.model.Dependency dependency)
                    throws UnresolvableModelException {
                switch (dependency.getManagementKey()) {
                    case BASE1_ID:
                        return new StringModelSource(BASE1);
                    case BASE2_ID:
                        return new StringModelSource(BASE2);
                }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Feb 01 16:25:04 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  2. maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

            }
    
            @Override
            public int compareTo(Item item) {
                if (item == null) {
                    return (value == 0) ? 0 : 1; // 1.0 == 1, 1.1 > 1
                }
    
                switch (item.getType()) {
                    case INT_ITEM:
                        int itemValue = ((IntItem) item).value;
                        return Integer.compare(value, itemValue);
                    case LONG_ITEM:
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 26K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/xml/DomUtil.java

                return null;
            }
            final char[] content = s.toCharArray();
            final StringBuilder buf = new StringBuilder(s.length() + 100);
            for (final char element : content) {
                switch (element) {
                case '<':
                    buf.append("&lt;");
                    break;
                case '>':
                    buf.append("&gt;");
                    break;
                case '&':
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  4. maven-model/src/main/java/org/apache/maven/model/InputLocation.java

        /**
         *
         *
         * @param key
         * @return InputLocation
         */
        public InputLocation getLocation(Object key) {
            if (key instanceof String) {
                switch ((String) key) {
                    case "": {
                        return this.location;
                    }
                    default: {
                        return getOtherLocation(key);
                    }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Oct 19 07:06:15 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  5. maven-xml-impl/src/main/java/org/apache/maven/internal/xml/ImmutableCollections.java

            if (collection == null) {
                return emptyList();
            } else if (collection instanceof AbstractImmutableList) {
                return (List<E>) collection;
            } else {
                switch (collection.size()) {
                    case 0:
                        return emptyList();
                    case 1:
                        return singletonList(collection.iterator().next());
                    case 2:
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jan 22 17:27:48 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/log/Logger.java

            assertArgumentNotEmpty("messageCode", messageCode);
    
            final char messageType = messageCode.charAt(0);
            final String message = MessageFormatter.getSimpleMessage(messageCode, args);
            switch (messageType) {
            case 'D':
                return new LogMessage(LogLevel.DEBUG, message);
            case 'I':
                return new LogMessage(LogLevel.INFO, message);
            case 'W':
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/CrawlingConfigHelper.java

                        return null;
                    }
                    final String id = getId(configId);
                    if (id == null) {
                        return null;
                    }
                    return switch (configType) {
                    case WEB -> {
                        final WebConfigService webConfigService = ComponentUtil.getComponent(WebConfigService.class);
                        yield webConfigService.getWebConfig(id).get();
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/keymatch/AdminKeymatchAction.java

        //                                                                        ============
    
        public static OptionalEntity<KeyMatch> getEntity(final CreateForm form, final String username, final long currentTime) {
            switch (form.crudMode) {
            case CrudMode.CREATE:
                return OptionalEntity.of(new KeyMatch()).map(entity -> {
                    entity.setCreatedBy(username);
                    entity.setCreatedTime(currentTime);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/duplicatehost/AdminDuplicatehostAction.java

        //                                                                        ============
        public static OptionalEntity<DuplicateHost> getEntity(final CreateForm form, final String username, final long currentTime) {
            switch (form.crudMode) {
            case CrudMode.CREATE:
                return OptionalEntity.of(new DuplicateHost()).map(entity -> {
                    entity.setCreatedBy(username);
                    entity.setCreatedTime(currentTime);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/PluginHelper.java

            return new Artifact(nameList.stream().collect(Collectors.joining("-")), versionList.stream().collect(Collectors.joining("-")), url);
        }
    
        public void installArtifact(final Artifact artifact) {
            switch (artifact.getType()) {
            case THEME:
                install(artifact);
                ComponentUtil.getThemeHelper().install(artifact);
                break;
            default:
                install(artifact);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 16.8K bytes
    - Viewed (0)
Back to top