Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 49 for IsArray (0.2 sec)

  1. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        Object sample = pickInstance(samples, null);
        if (sample != null) {
          return sample;
        }
        if (rawType.isEnum()) {
          return pickInstance(rawType.getEnumConstants(), null);
        }
        if (type.isArray()) {
          TypeToken<?> componentType = requireNonNull(type.getComponentType());
          Object array = Array.newInstance(componentType.getRawType(), 1);
          Array.set(array, 0, generate(componentType));
          return array;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  2. subprojects/core-api/src/main/java/org/gradle/util/CollectionUtils.java

                }
    
                // Casts to Class below are to workaround Eclipse compiler bug
                // See: https://github.com/gradle/gradle/pull/200
    
                if (thing.getClass().isArray()) {
                    Object[] thingArray = (Object[]) thing;
                    List<T> list = new ArrayList<T>(thingArray.length);
                    for (Object thingThing : thingArray) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 11:17:19 UTC 2024
    - 26K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        Object sample = pickInstance(samples, null);
        if (sample != null) {
          return sample;
        }
        if (rawType.isEnum()) {
          return pickInstance(rawType.getEnumConstants(), null);
        }
        if (type.isArray()) {
          TypeToken<?> componentType = requireNonNull(type.getComponentType());
          Object array = Array.newInstance(componentType.getRawType(), 1);
          Array.set(array, 0, generate(componentType));
          return array;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 28K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/assign.go

    			// TODO(mdempsky): Disallow init statements on lvalues.
    			init := ir.TakeInit(l)
    			walkStmtList(init)
    			early.Append(init...)
    
    			switch ll := l.(type) {
    			case *ir.IndexExpr:
    				if ll.X.Type().IsArray() {
    					save(&ll.Index)
    					l = ll.X
    					continue
    				}
    			case *ir.ParenExpr:
    				l = ll.X
    				continue
    			case *ir.SelectorExpr:
    				if ll.Op() == ir.ODOT {
    					l = ll.X
    					continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/order.go

    		if l == n.X {
    			return n
    		}
    		a := ir.Copy(n).(*ir.StarExpr)
    		a.X = l
    		return typecheck.Expr(a)
    
    	case ir.OINDEX, ir.OINDEXMAP:
    		n := n.(*ir.IndexExpr)
    		var l ir.Node
    		if n.X.Type().IsArray() {
    			l = o.safeExpr(n.X)
    		} else {
    			l = o.cheapExpr(n.X)
    		}
    		r := o.cheapExpr(n.Index)
    		if l == n.X && r == n.Index {
    			return n
    		}
    		a := ir.Copy(n).(*ir.IndexExpr)
    		a.X = l
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/adapter/ProtocolToModelAdapter.java

                    if (a == b) {
                        return true;
                    }
                    if (a == null) {
                        return false;
                    }
                    if (a.getClass().isArray()) {
                        return Arrays.equals((Object[]) a, (Object[]) b);
                    }
                    return a.equals(b);
                }
    
                @Override
                public int hashCode() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 04:42:54 UTC 2024
    - 45.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/expr.go

    	// if range of type cannot exceed static array bound,
    	// disable bounds check.
    	if n.Bounded() {
    		return n
    	}
    	t := n.X.Type()
    	if t != nil && t.IsPtr() {
    		t = t.Elem()
    	}
    	if t.IsArray() {
    		n.SetBounded(bounded(r, t.NumElem()))
    		if base.Flag.LowerM != 0 && n.Bounded() && !ir.IsConst(n.Index, constant.Int) {
    			base.Warn("index bounds check elided")
    		}
    	} else if ir.IsConst(n.X, constant.String) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/lang/ClassUtil.java

         *            クラス。{@literal null}であってはいけません
         * @return クラス名
         */
        public static String getSimpleClassName(final Class<?> clazz) {
            assertArgumentNotNull("clazz", clazz);
    
            if (clazz.isArray()) {
                return getSimpleClassName(clazz.getComponentType()) + "[]";
            }
            return clazz.getName();
        }
    
        /**
         * クラス名をリソースパスとして表現します。
         *
         * @param clazz
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/typecheck.go

    func implicitstar(n ir.Node) ir.Node {
    	// insert implicit * if needed for fixed array
    	t := n.Type()
    	if t == nil || !t.IsPtr() {
    		return n
    	}
    	t = t.Elem()
    	if t == nil {
    		return n
    	}
    	if !t.IsArray() {
    		return n
    	}
    	star := ir.NewStarExpr(base.Pos, n)
    	star.SetImplicit(true)
    	return Expr(star)
    }
    
    func needOneArg(n *ir.CallExpr, f string, args ...interface{}) (ir.Node, bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/walk/builtin.go

    	}
    
    	n.X = walkExpr(n.X, init)
    
    	// replace len(*[10]int) with 10.
    	// delayed until now to preserve side effects.
    	t := n.X.Type()
    
    	if t.IsPtr() {
    		t = t.Elem()
    	}
    	if t.IsArray() {
    		safeExpr(n.X, init)
    		con := ir.NewConstExpr(constant.MakeInt64(t.NumElem()), n)
    		con.SetTypecheck(1)
    		return con
    	}
    	return n
    }
    
    // walkMakeChan walks an OMAKECHAN node.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top