private boolean firstOnLine(@NotNull ASTNode node) { Document document = document(node.getPsi()); assert document != null; int nodeStartOffset = node.getStartOffset(); int lineNumber = document.getLineNumber(nodeStartOffset); int lineStartOffset = document.getLineStartOffset(lineNumber); String prefix = document.getText(new TextRange(lineStartOffset, nodeStartOffset)); return isWhitespace(prefix); }
reader.println(); throw new IOException("Input stream closed"); } else if (StringUtils.isWhitespace(iteratorName)) { reader.println(); throw new IOException("Input stream closed"); } else if (StringUtils.isWhitespace(input)) { break;
@Override public boolean evaluate(Object object) { if (object == null) { return false; } else if (object instanceof String) { return !StringUtils.isWhitespace((String) object); } else { return true; } } });
public void setLeavePlan(String leavePlan) { if (StringUtils.isWhitespace(leavePlan)) { throw new IllegalArgumentException("leavePlan is blank"); } this.leavePlan = leavePlan; }
public void setId(String id) { if (StringUtils.isWhitespace(id)) { throw new IllegalArgumentException("id is blank"); } this.id = id; }
public void setGroupKeyCode(String groupKeyCode) { if (StringUtils.isWhitespace(groupKeyCode)) { throw new IllegalArgumentException("groupKeyCode is blank"); } this.groupKeyCode = groupKeyCode; }
public void setId(String id) { if (StringUtils.isWhitespace(id)) { throw new IllegalArgumentException("id is whitespace"); } this.id = id; } public void setPriority(Integer priority) {
public void setId(String id) { if (StringUtils.isWhitespace(id)) { throw new IllegalArgumentException("id was whitespace"); } this.id = id; }
public void setPayStep(String payStep) { if (StringUtils.isWhitespace(payStep)) { throw new IllegalArgumentException("payStep is blank"); } this.payStep = payStep; }
public void setPositionAppointment(String positionAppointment) { if (StringUtils.isWhitespace(positionAppointment)) { throw new IllegalArgumentException("positionAppointment is blank"); } this.positionAppointment = positionAppointment; }
public void setId(String id) { if (StringUtils.isWhitespace(id)) { throw new IllegalArgumentException("id is blank"); } this.id = id; }
public void setId(String id) { if (StringUtils.isWhitespace(id)) { throw new IllegalArgumentException("id was blank"); } this.id = id; }
public void setId(String id) { if (StringUtils.isWhitespace(id)) { throw new IllegalArgumentException("id was null or blank"); } this.id = id; }
public void setPositionReportCat(String positionReportCat) { if (StringUtils.isWhitespace(positionReportCat)) { throw new IllegalArgumentException("positionReportCat is blank"); } this.positionReportCat = positionReportCat; }
public void setPositionReportGroup(String positionReportGroup) { if (StringUtils.isWhitespace(positionReportGroup) || (positionReportGroup == null)) { throw new IllegalArgumentException("positionReportGroup is blank"); } this.positionReportGroup = positionReportGroup; }
public void setPositionReportSubCat(String positionReportSubCat) { if (StringUtils.isWhitespace(positionReportSubCat)) { throw new IllegalArgumentException("positionReportSubCat is blank"); } this.positionReportSubCat = positionReportSubCat; }
private static boolean blank(CharSequence seq,int start,int end){ if (start >= end || start < 0) return true; return StringUtils.isWhitespace(seq.subSequence(start, end).toString()); }
private int calculateContextColumn(String context) { int column = 0; while (column < context.length() && StringUtils.isWhitespace(context.charAt(column) + "")) { column++; } return column; }
private static boolean blank(CharSequence seq,int start,int end){ if (start >= end || start < 0) return true; return StringUtils.isWhitespace(seq.subSequence(start, end).toString()); }
private int calculateContextColumn(String context) { int column = 0; while (column < context.length() && StringUtils.isWhitespace(context.charAt(column) + "")) { column++; } return column; }