Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 836 for IsEmpty (0.09 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/JdkVersionProfileActivator.java

            if (jdk == null) {
                return false;
            }
    
            String version = context.getSystemProperties().get("java.version");
    
            if (version == null || version.isEmpty()) {
                problems.add(new ModelProblemCollectorRequest(Severity.ERROR, Version.BASE)
                        .setMessage("Failed to determine Java version for profile " + profile.getId())
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/tag.go

    			default:
    				return errUnknownXMLTag
    			}
    		}
    	}
    
    	return nil
    }
    
    func (tag Tag) String() string {
    	return tag.Key + "=" + tag.Value
    }
    
    // IsEmpty returns whether this tag is empty or not.
    func (tag Tag) IsEmpty() bool {
    	return tag.Key == ""
    }
    
    // Validate checks this tag.
    func (tag Tag) Validate() error {
    	if len(tag.Key) == 0 || utf8.RuneCountInString(tag.Key) > 128 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingException.java

         *
         * @return The identifier of the POM or an empty string if not known, never {@code null}.
         */
        public String getModelId() {
            if (result == null || result.getModelIds().isEmpty()) {
                return "";
            }
            return result.getModelIds().get(0);
        }
    
        /**
         * Gets the problems that caused this exception.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/AbstractRangeSet.java

        return rangeContaining(value) != null;
      }
    
      @Override
      @CheckForNull
      public abstract Range<C> rangeContaining(C value);
    
      @Override
      public boolean isEmpty() {
        return asRanges().isEmpty();
      }
    
      @Override
      public void add(Range<C> range) {
        throw new UnsupportedOperationException();
      }
    
      @Override
      public void remove(Range<C> range) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

        for (Range<Integer> range1 : RANGES) {
          for (Range<Integer> range2 : RANGES) {
            boolean expectRejection =
                range1.isConnected(range2) && !range1.intersection(range2).isEmpty();
            ImmutableRangeMap.Builder<Integer, Integer> builder = ImmutableRangeMap.builder();
            builder.put(range1, 1).put(range2, 2);
            try {
              ImmutableRangeMap<Integer, Integer> unused = builder.build();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileInjector.java

                    PluginContainer source,
                    boolean sourceDominant,
                    Map<Object, Object> context) {
                List<Plugin> src = source.getPlugins();
                if (!src.isEmpty()) {
                    List<Plugin> tgt = target.getPlugins();
                    Map<Object, Plugin> master = new LinkedHashMap<>(tgt.size() * 2);
    
                    for (Plugin element : tgt) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

        }
    
        /**
         *
         */
        @Test
        public void testIsEmpty() {
            assertTrue(ArrayUtil.isEmpty((Object[]) null));
            assertTrue(ArrayUtil.isEmpty(new Object[] {}));
            assertFalse(ArrayUtil.isEmpty(new Object[] { "" }));
            assertFalse(ArrayUtil.isEmpty(new Object[] { "aaa" }));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  8. internal/event/config.go

    	Name  string `xml:"Name"`
    	Value string `xml:"Value"`
    }
    
    func (filter FilterRule) isEmpty() bool {
    	return filter.Name == "" && filter.Value == ""
    }
    
    // MarshalXML implements a custom marshaller to support `omitempty` feature.
    func (filter FilterRule) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
    	if filter.isEmpty() {
    		return nil
    	}
    	type filterRuleWrapper FilterRule
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 16 17:28:29 UTC 2021
    - 8.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/NullCacheTest.java

        assertSame(key, notification.getKey());
        assertSame(computed, notification.getValue());
        assertSame(RemovalCause.SIZE, notification.getCause());
        assertTrue(listener.isEmpty());
        checkEmpty(cache);
      }
    
      public void testGet_expireAfterWrite() {
        Object computed = new Object();
        LoadingCache<Object, Object> cache =
            CacheBuilder.newBuilder()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/NullCacheTest.java

        assertSame(key, notification.getKey());
        assertSame(computed, notification.getValue());
        assertSame(RemovalCause.SIZE, notification.getCause());
        assertTrue(listener.isEmpty());
        checkEmpty(cache);
      }
    
      public void testGet_expireAfterWrite() {
        Object computed = new Object();
        LoadingCache<Object, Object> cache =
            CacheBuilder.newBuilder()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.4K bytes
    - Viewed (0)
Back to top