Similar to setLevels(levels, isOrdered),

@param levels
@param codes
@param isOrdered a flag indicating whether the levels actually have "less than" and "greater than" left-to-right order
meaning
@throws DDFException
192525
public void setLevels(List<String> levels, List<Integer> codes, boolean isOrdered) throws DDFException {
    if (levels == null || levels.isEmpty()) throw new DDFException("Levels cannot be null or empty");
    if (codes != null && codes.size() != levels.size()) throw new DDFException(String.format(
        "The number of levels is %d which does not match the number of codes %d", levels.size(), codes.size()));

    if (mLevelMap == null) mLevelMap = this.instantiateSynchronizedLevelMap();

    if (codes == null) {
      // Auto-create a 1-based level-code map
      codes = new ArrayList<Integer>();
      for (int i = 1; i <= levels.size(); i++) {
        codes.add(i);
      }
    }

    Iterator<String> levelIter = levels.iterator();
    Iterator<Integer> codeIter = codes.iterator();
    while (levelIter.hasNext()) {
      mLevelMap.put(levelIter.next(), codeIter.next());
    }
    this.mLevels = new ArrayList<String>(levels);
    this.setOrdered(isOrdered);
  }
1371753
@Deprecated
    public void setMinLevel(String minLevel) {
        this.minLevel = minLevel != null ? Level.toLevel(minLevel) : null;
    }
279366
public void setDecimals(final int DECIMALS) {
        if (null == decimals) {
            _decimals    = clamp(0, 5, DECIMALS);
            formatString = new StringBuilder("%.").append(_decimals).append("f").toString();
            redraw();
        } else {
            decimals.set(DECIMALS);
        }
    }
923710
protected boolean isDDLStatement(String[] sqlTokens) {
    if (sqlTokens.length > 0) {
      for (String statement : DDL_STATEMENTS) {
        if (sqlTokens[0].equalsIgnoreCase(statement))
          return true;
      }
    }

    return false;
  }
1179559
public void increment(int level) {
		assert level >= 1;
		if (this.numbers.size() < level) {
			do {
				this.numbers.addLast(0);
			} while (this.numbers.size() < level);
		} else if (this.numbers.size() > level) {
			do {
				this.numbers.removeLast();
			} while (this.numbers.size() > level);
		}
		assert this.numbers.size() == level;
		final int previousSection = this.numbers.removeLast();
		this.numbers.addLast(previousSection + 1);
	}
275804
@Override
	public void cacheResult(List<CPTaxCategory> cpTaxCategories) {
		for (CPTaxCategory cpTaxCategory : cpTaxCategories) {
			if (entityCache.getResult(
						CPTaxCategoryModelImpl.ENTITY_CACHE_ENABLED,
						CPTaxCategoryImpl.class, cpTaxCategory.getPrimaryKey()) == null) {
				cacheResult(cpTaxCategory);
			}
			else {
				cpTaxCategory.resetOriginalValues();
			}
		}
	}
39481
public void setCompressionLevel(int compressionLevel) {
		if (compressionLevel < PdfStream.NO_COMPRESSION || compressionLevel > PdfStream.BEST_COMPRESSION)
			this.compressionLevel = PdfStream.DEFAULT_COMPRESSION;
		else
			this.compressionLevel = compressionLevel;
	}
634155
public void setCode(ExprCode code) {
        mCode = code;

        mStartPos = mCode.mStartPos;
        mCurIndex = mStartPos;
    }
613784
protected void createDefaultLevels() {
        this.listLevels = new ArrayList();	// listlevels
        for(int i=0; i<=8; i++) {
            // create a list level
            RtfListLevel ll = new RtfListLevel(this.document);
            ll.setListType(RtfListLevel.LIST_TYPE_NUMBERED);
        	ll.setFirstIndent(0);
        	ll.setLeftIndent(0);
        	ll.setLevelTextNumber(i);
            ll.setTentative(true);
            ll.correctIndentation();
            this.listLevels.add(ll);
        }

    }
977030
public void setSections(final List<Section> SECTIONS) {
        getSections().setAll(SECTIONS);
        getSections().sort(new SectionComparator());
        fireTileEvent(SECTION_EVENT);
    }
753132
@Override
    public void sawOpcode(int seen) {
        if (downwardBranchTarget == -1) {
            switch (state) {
                case SAW_NOTHING:
                    sawOpcodeAfterNothing(seen);
                break;

                case SAW_LOAD:
                    sawOpcodeAfterLoad(seen);
                break;

                case SAW_CHECKCAST:
                    sawOpcodeAfterCheckCast(seen);
                break;
            }

            int insTarget = -1;
            if (((seen >= Const.IFEQ) && (seen <= Const.IF_ACMPNE)) || (seen == Const.GOTO) || (seen == Const.GOTO_W)) {
                insTarget = getBranchTarget();
                if (insTarget < getPC()) {
                    insTarget = -1;
                }
            } else if ((seen == Const.LOOKUPSWITCH) || (seen == Const.TABLESWITCH)) {
                insTarget = this.getDefaultSwitchOffset() + getPC();
            }

            if (insTarget > downwardBranchTarget) {
                downwardBranchTarget = insTarget;
            }
        } else {
            state = State.SAW_NOTHING;
            if (getPC() >= downwardBranchTarget) {
                downwardBranchTarget = -1;
            }
        }
    }
782472
public void setCode(String timecode) throws Timecode.TimecodeException {
    clear();
    setHours(getToken(timecode, 0));
    setMinutes(getToken(timecode, 1));
    setSeconds(getToken(timecode, 2));
    setFrames(getToken(timecode, 3));
    if (useSamples()) {
      try {
        setSamples(getToken(timecode, 4));
        // If we got here, we're parsing a AES31-formatted string... Set our
        // frames per sec to 30 instead of 75
        setFramesPerSecond(30);
      } catch (Timecode.TimecodeException ignored) {
      } // If this fails, it just means the code didn't have samples appended
    }
    // fix badly formed values : 00:00:60:00 will become 00:01:00:00, etc.
    normalize();
  }
1019554
private void pushLevel(final Mode mode) {
        JsonLevel newJsonLevel = null;

        if (mode == Mode.BOM) {
            newJsonLevel = new JsonLevel(mode, new JsonPointer()); //not a valid nesting level
        } else if (mode == Mode.JSON_OBJECT) {
            if (levelStack.size() > 0) {
                JsonLevel current = levelStack.peek();
                newJsonLevel = new JsonLevel(mode, new JsonPointer(current.jsonPointer().tokens()));
            } else {
                newJsonLevel = new JsonLevel(mode, new JsonPointer());
            }
        } else if (mode == Mode.JSON_ARRAY) {
            if (levelStack.size() > 0) {
                JsonLevel current = levelStack.peek();
                newJsonLevel = new JsonLevel(mode, new JsonPointer(current.jsonPointer().tokens()));
            } else {
                newJsonLevel = new JsonLevel(mode, new JsonPointer());
            }
            newJsonLevel.isArray(true);
            newJsonLevel.setArrayIndexOnJsonPointer();
        }

        levelStack.push(newJsonLevel);
    }
1120778
public void setLevel(int v) {
    if (ListItem_Type.featOkTst && ((ListItem_Type)jcasType).casFeat_level == null)
      jcasType.jcas.throwFeatMissing("level", "de.julielab.jules.types.ListItem");
    jcasType.ll_cas.ll_setIntValue(addr, ((ListItem_Type)jcasType).casFeatCode_level, v);}
1285099
public void setSubEntries(List<CmsClientSitemapEntry> children, I_CmsSitemapController controller) {

        m_childrenLoadedInitially = true;

        m_subEntries.clear();
        if (children != null) {
            m_subEntries.addAll(children);
            for (CmsClientSitemapEntry child : children) {
                child.updateSitePath(CmsStringUtil.joinPaths(m_sitePath, child.getName()), controller);
            }
        }
    }
1364708
private static int[] computeMultilineReordering(byte[] levels, int[] linebreaks) {
        int[] result = new int[levels.length];
        
        int start = 0;
        for (int i = 0; i < linebreaks.length; ++i) {
            int limit = linebreaks[i];
            
            byte[] templevels = new byte[limit - start];
            System.arraycopy(levels, start, templevels, 0, templevels.length);
            
            int[] temporder = computeReordering(templevels);
            for (int j = 0; j < temporder.length; ++j) {
                result[start + j] = temporder[j] + start;
            }
            
            start = limit;
        }
        
        return result;
    }
1287695
private void initQualityScoreChildrenSettings(QualityScoreSettings qualityScoreSettings) {
    ScoreComponentSettings qualityCCSettings = Utils.getInstanceIfNull(qualityScoreSettings.getCodeCoverage(), ScoreComponentSettings.class);
    qualityCCSettings.setCriteria(
      Utils.mergeCriteria(qualityScoreSettings.getCriteria(), qualityCCSettings.getCriteria())
    );
    qualityScoreSettings.setCodeCoverage(qualityCCSettings);

    ScoreComponentSettings qualityUTSettings = Utils.getInstanceIfNull(qualityScoreSettings.getUnitTests(), ScoreComponentSettings.class);
    qualityUTSettings.setCriteria(
      Utils.mergeCriteria(qualityScoreSettings.getCriteria(), qualityUTSettings.getCriteria())
    );
    qualityScoreSettings.setUnitTests(qualityUTSettings);

    QualityScoreSettings.ViolationsScoreSettings violationsSettings = Utils.getInstanceIfNull(qualityScoreSettings.getViolations(), QualityScoreSettings.ViolationsScoreSettings.class);
    violationsSettings.setCriteria(
      Utils.mergeCriteria(qualityScoreSettings.getCriteria(), violationsSettings.getCriteria())
    );
    qualityScoreSettings.setViolations(violationsSettings);
  }