コード例 #1
0
 public String apply(SUT s) {
   Assert.notNull(s);
   Widget w = finder.apply(s.get(Tags.SystemState));
   Object[] tagValues = new Object[tags.length];
   for (int i = 0; i < tags.length; i++) tagValues[i] = w.get(tags[i], null);
   return String.format(formatString, tagValues);
 }
コード例 #2
0
 public WidgetIterator(Widget start, Navigator navi) {
   Assert.notNull(start, navi);
   this.buffer = new LinkedList<Widget>();
   this.navi = navi;
   this.buffer.add(start);
   this.navi.run(this.buffer);
 }
コード例 #3
0
ファイル: Color.java プロジェクト: nanliu0408/fittest
 private Color(int red, int green, int blue, int alpha) {
   Assert.isTrue(
       red >= 0
           && green >= 0
           && blue >= 0
           && alpha >= 0
           && red <= 255
           && green <= 255
           && blue <= 255
           && alpha <= 255);
   this.red = red;
   this.green = green;
   this.blue = blue;
   this.alpha = alpha;
   this.argb32 = red + (green << 8) + (blue << 16) + (alpha << 24);
 }
コード例 #4
0
 public AbsolutePosition(Point point) {
   Assert.notNull(point);
   p = point;
 }
コード例 #5
0
 public DynWidgetDesc(Finder finder, String formatString, Tag<?>... tags) {
   Assert.notNull(formatString, finder, tags);
   this.formatString = formatString;
   this.finder = finder;
   this.tags = tags;
 }