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); }
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); }
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); }
public AbsolutePosition(Point point) { Assert.notNull(point); p = point; }
public DynWidgetDesc(Finder finder, String formatString, Tag<?>... tags) { Assert.notNull(formatString, finder, tags); this.formatString = formatString; this.finder = finder; this.tags = tags; }