Set the preferred type of road segment.

@param type is the preferred type of road segment.
427688
public static void setPreferredRoadType(RoadType type) {
		final Preferences prefs = Preferences.userNodeForPackage(RoadNetworkConstants.class);
		if (prefs != null) {
			if (type == null) {
				prefs.remove("ROAD_TYPE"); //$NON-NLS-1$
			} else {
				prefs.put("ROAD_TYPE", type.name()); //$NON-NLS-1$
			}
		}
	}
300990
void setDeferredType(Node node, JSType type) {
    // Other parts of this pass may read the not-yet-resolved type off the node.
    // (like when we set the LHS of an assign with a typed RHS function.)
    node.setJSType(type);
    deferredSetTypes.add(new DeferredSetType(node, type));
  }
920473
private void setSecStrucType(int pos, SecStrucType type){
		SecStrucState ss = getSecStrucState(pos);
		if (type.compareTo(ss.getType()) < 0) ss.setType(type);
	}
478226
public void setTypeMap(Map<TypeElement, org.revapi.java.model.TypeElement> typeMap) {
        this.typeMap = typeMap;
    }
444815
public void setType(int type) {
        this.type = type;
        if (level == LEVEL_UNDEFINED) {
            switch (type) {
                case TYPE_INT:
                case TYPE_LONG:
                case TYPE_DOUBLE:
                    level = LEVEL_LOW;
                    break;
                case TYPE_STAT:
                    level = LEVEL_MEDIUM;
                    unit = "unit.ms";
                    break;
                case TYPE_LOAD:
                    level = LEVEL_HIGH;
                    break;
                case TYPE_SUBMODULE:
                    level = LEVEL_MAX;
                    break;
                default:
                    break;
            }
        }
    }
258231
void setScriptType(int type) {

        // OOo related code
        if (database.isStoredFileAccess()) {
            return;
        }

        // OOo end
        boolean needsCheckpoint = scriptFormat != type;

        scriptFormat = type;

        properties.setProperty(HsqlDatabaseProperties.hsqldb_script_format,
                               String.valueOf(scriptFormat));

        if (needsCheckpoint) {
            database.logger.needsCheckpoint = true;
        }
    }
1104509
public void setKnotType(int n, int type) {
		knotTypes[n] = (byte)((knotTypes[n] & ~COLOR_MASK) | type);
		rebuildGradient();
	}
1095264
public void setTypes(@NonNull String[] types) {
      this.types = Arrays.stream(types)
                         .map(Types::from)
                         .toArray(AnnotatableType[]::new);
   }
750062
public void setMarkerType(final MarkerType TYPE) {
        if (null == markerType) {
            _markerType = null == TYPE ? MarkerType.STANDARD : TYPE;
        } else {
            markerType.set(TYPE);
        }
        fireMarkerEvent(TYPE_CHANGED_EVENT);
    }
150218
public static void setPreferredRoadColor(RoadType roadType, Integer color) {
		final RoadType rt = roadType == null ? RoadType.OTHER : roadType;
		final Preferences prefs = Preferences.userNodeForPackage(RoadNetworkLayerConstants.class);
		if (prefs != null) {
			if (color == null || color.intValue() == DEFAULT_ROAD_COLORS[rt.ordinal() * 2]) {
				prefs.remove("ROAD_COLOR_" + rt.name().toUpperCase()); //$NON-NLS-1$
			} else {
				prefs.put("ROAD_COLOR_" + rt.name().toUpperCase(), Integer.toString(color.intValue())); //$NON-NLS-1$
			}
			try {
				prefs.flush();
			} catch (BackingStoreException exception) {
				//
			}
		}
	}
1141078
void setDataType(Session session, Type type) {

        if (opType == OpTypes.VALUE) {
            valueData = type.convertToType(session, valueData, dataType);
        }

        dataType = type;
    }
1261140
public void setTypes(com.google.api.ads.admanager.axis.v201902.LabelType[] types) {
        this.types = types;
    }
65309
public void setAnimationType(Type type){
        if(type == null)
            options.clearProperty(ANIMATION_EASING);
        else
            options.setProperty(ANIMATION_EASING, type.getValue());
    }
1105310
public void setStripingType(final StripingType stripingType) {
		getOrCreateComponentModel().stripingType = stripingType == null ? StripingType.NONE : stripingType;
	}
1115740
public void setGoalType(com.google.api.ads.admanager.axis.v201808.GoalType goalType) {
        this.goalType = goalType;
    }
429588
public void setType(java.lang.String type) {
        getStateHelper().put(PropertyKeys.type, type);
        handleAttribute("type", type);
    }
490216
public static void setPreferredAttributeValueForRoadType(RoadType type, String value) {
		final Preferences prefs = Preferences.userNodeForPackage(RoadNetworkConstants.class);
		if (prefs != null) {
			final String sysDef = getSystemDefault(type);
			if (value == null || "".equals(value) || sysDef.equalsIgnoreCase(value)) { //$NON-NLS-1$
				prefs.remove("ROAD_TYPE_VALUE_" + type.name()); //$NON-NLS-1$
			} else {
				prefs.put("ROAD_TYPE_VALUE_" + type.name(), value); //$NON-NLS-1$
			}
		}
	}